|
-
September 23rd, 2004, 09:58 PM
#1
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
-
September 24th, 2004, 02:14 AM
#2
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
-
September 24th, 2004, 03:07 AM
#3
Re: problem when write DLL in VC fro use VB
Thanks, but i do not find false
-
September 24th, 2004, 03:08 PM
#4
Re: problem when write DLL in VC fro use VB
 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.
-
September 26th, 2004, 06:14 AM
#5
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,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|