Board index » Visual Studio » problem using delphi dll in vc++
|
cmap
|
problem using delphi dll in vc++
Visual Studio51
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 - |
