|
-
October 17th, 2003, 11:29 AM
#1
Explicit import class from dll
I want to write a class derived from a class in a dll, but I don't want to use .lib file. So How to Explicit import class from dll?
Thanks a lot!
-
October 17th, 2003, 08:48 PM
#2
-
October 17th, 2003, 11:57 PM
#3
Originally posted by Kyliny
HelpHelp
You can dynamically explicit load the dll in run time and no lib is needed.
e.g
typedef void (*PExportedFn)(int&, char*);
HMODULE hMod = LoadLibrary("Lib1.dll");
PExportedFn pfnEF = (PExportedFn)GetProcAddress(hMod, "ExportedFn");
// pfnEF will be ur function method in the dll file.
You can reference http://www.codeguru.com/forum/showth...209#post827209 for more information.
Regards,
JamesGoh
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
|