problem when write DLL in VC fro use VB
Hi everybody
I wrote dll in VC for use VB.
When i built dll with set active project configuration=release and call it in VB the result is not correct.
But bult it with set active project configuration=debug the result is correct.
Can you help me ?
Thanks
Re: problem when write DLL in VC fro use VB
Hi ,
It is wild guess. ( i need to do so because ur question is partial ).
In ur Release Build, Calling convention may not be __stdcall or byte alignment is
8.
In ur Debug build calling convention is __stdcall ( perhaps byte alignment is 4 ..are u passing structs ? )
Check the settings
Praseed Pai
Re: problem when write DLL in VC fro use VB
Thanks, but i do not find false
Re: problem when write DLL in VC fro use VB
Quote:
Originally Posted by hungtt
When i built dll with set active project configuration=release and call it in VB the result is not correct.
But bult it with set active project configuration=debug the result is correct.
Maybe you're supposing that the initial values of variables and member variables are zero. Use the compiler option /RTCu (Uninitialized local usage checks) and correct all errors that will appear in the debug DLL when you run the program.
Re: problem when write DLL in VC fro use VB
Assuming that is not an ActiveX dll, and you export your functions as __stdcall:
Have you included a *.def file in your project where compiling the dll?
Attach your compiled dll, the one compiled in Release version. I'd like to see it.
Regards,