|
Prev: typedef vs inheritance
Next: safe alternative to va_arg
From: Ryanivanka on 16 Apr 2008 22:41 hi, I am using a delphi DLL in vc++,static linked with ".h"and "lib". the export functions in DLL are "__stdcall",but the function doesn't work well,it often returns some weird values. when I add codes as follows,it suddenly works well. why?? DWORD returnAdd; __asm { mov ecx,[ebp+4] mov returnAdd, ecx } I am confused,if there is something wrong with stack,I have already using "__stdcall",why it is still wrong? I don't even know what those asm code do,I just add them to get some status about stack.what else they do to the program that I don't know? thank you . Ryan
|
Pages: 1 Prev: typedef vs inheritance Next: safe alternative to va_arg |