Category: windows
I was reading the source code of the FastMM4 and this short function came to my eyes. function GetThreadID: Cardinal; {$ifdef 32Bit} asm mov eax, FS: end; {$else} begin Result …
April 22, 2013
64 bit, assembly language, beginner, compiler, floating point, implementation, interpreter / compiler, object pascal, programming languages, technical, tricks, windows
Delphi XE3 compiles 64-bit fast floating point code based on SSE2 (Streaming SIMD Extensions). The SSE instruction data move for 4-byte singles such as movaps requires data address to be 16-byte …
April 22, 2013
64 bit, assembly language, bug fixes, code, compiler, delphi, implementation, interpreter / compiler, optimization, programming languages, technical, tricks, windows
I came across a very strange problem when I tried to use Copy function in Delphi XE3. The Copy function behaves differently for string when compiled into 32bit and 64bit using Delphi …
April 17, 2013
batch script, beginner, code, implementation, programming languages, tricks, VBA, vbscript, windows, windows command shell, windows scripting host
Windows is full of COM (Component Object Model), and many software (such as Microsoft Office) provides the COM automation object, that can be easily programmed. The following shows an …
I have posted a question on stackoverflow.com and it got answered within a few minutes. Then I realized how stupid this bug was. I have a Delphi project that was …