|
-
November 25th, 1999, 03:27 AM
#1
c dll with VB6
Hello
I try to write a C dll for VB6 and it do not work VB6 crash when calling the DLL
if anybody have a simple example ?
Thanks
-
November 25th, 1999, 05:56 AM
#2
Re: c dll with VB6
What exactly are you trying to do?-)
All C fns in the dll should be decalred with _stdcall convention.
Then write all your export functions in a .def file, so that c compiler will not add decorations.
Add the def file to the project and build.
Then do a proper declarations of those functions in your vb program. Either copy the dll to the application directory, or specify the complete path in the declarations.
And then call them happyly
Check on this board, there should be one example (posted by me :-) ) even showing things like callback functions etc, Hope that is not a overdose..
RK
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
|