|
-
Jun 2nd, 2002, 03:17 AM
#1
Thread Starter
Member
how to save may function in dll ?
hi,
can you hellp me.
how to save may function in Dll file .
thenk you.
-
Jun 2nd, 2002, 03:37 PM
#2
Frenzied Member
create ur functions into a normal C/C++ file. you can then use a header file to get to them. or you can create a .def file and add this to it
Code:
LIBRARY "MYDLL.DLL"
Exports
FunctionName
then you can use the various GetProcAddress() and LoadLibrary() to get them
-
Jun 2nd, 2002, 03:55 PM
#3
Frenzied Member
Make sure you put __dllexport before your function calls
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Jun 2nd, 2002, 04:00 PM
#4
Jop: it's __declspec(dllexport) in VC++ and he doesn't need it if he uses a .def file.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 2nd, 2002, 04:05 PM
#5
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
|