|
-
Oct 2nd, 2000, 11:48 AM
#1
Thread Starter
Frenzied Member
does somebody know this one????
how can i register dll and ocx in vc++
-
Oct 2nd, 2000, 12:09 PM
#2
Frenzied Member
Use the Tools->Register Control option
-
Oct 2nd, 2000, 12:12 PM
#3
Thread Starter
Frenzied Member
yeah, ok , but...............
i mean at run time !(sorry)
-
Oct 2nd, 2000, 12:52 PM
#4
Monday Morning Lunatic
You need to use the LoadLibrary function. Code similar to this should be used: (warning...this will probably not compile):
Code:
HMODULE hDLL = LoadLibrary("file.ocx")
*(STDAPI)(void) hDLLProc = GetProcAddress(hDLL, "DllRegisterServer");
if(hDLLProc)
(*hDLLProc)();
FreeLibrary(hDLL);
I'm not too sure about the function pointer definition, though. Does anyone else have the exact details?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|