Register/Unregister dll/ocx using API calls 
Author Message
 Register/Unregister dll/ocx using API calls

Hello everyone!
If you know API calls that register/unregister dll/ocx, please let me
know ASAP.

Thank you all.

Sent via Deja.com
http://www.*-*-*.com/



Mon, 28 Jul 2003 01:43:17 GMT  
 Register/Unregister dll/ocx using API calls
Why don't you just Shell the regsvr32 with the path to the OCX and or dll?


Quote:
> Hello everyone!
> If you know API calls that register/unregister dll/ocx, please let me
> know ASAP.

> Thank you all.

> Sent via Deja.com
> http://www.deja.com/



Mon, 28 Jul 2003 11:09:33 GMT  
 Register/Unregister dll/ocx using API calls


Quote:
> Why don't you just Shell the regsvr32 with the path to the OCX and or
dll?



> > Hello everyone!
> > If you know API calls that register/unregister dll/ocx, please let
me
> > know ASAP.

There are problems with using Shell. You don't know when the
registration has finished, unless you also use the WaitForSingleObject
API. Even if you wait the program can't know whether the registration
succeeded. The user will know because it will show a dialog box.

All regsvr32 does is call the entries DllRegisterServer or
DllUnregisterServer in the DLL/OCX. You can do exactly the same from VB
into your own DLL. Suppose its called MyServer.dll.

Private Declare Function RegMyServer Lib "MyServer"
Alias "DllRegisterServer" () As Long

Result = RegMyServer

The returned result is 0 if the operation succeeded. The extension DLL
for the library is assumed.
--
Roger Abbott, RHA (Minisystems) Ltd - http://www.rhaminisys.com
DDE Client and Server ActiveX controls for Visual Basic
DDE FAQ and DDE utility tools, browser URL monitor,
Program launcher/setup menu, other freeware and shareware

Sent via Deja.com
http://www.deja.com/



Mon, 28 Jul 2003 16:38:11 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. beans.ocx cannot be loaded, when you unregister and register the JavaBean as an ActiveX Component

2. Register/Unregister DLL locally

3. Register/Unregister ActiveX exes and dlls

4. How can I unregister a self-registering DLL via vbscript or wscript

5. Windows API Call to Determine if an OCX is Registered

6. Windows API Call to Determine if an OCX is Registered ][

7. Programmatically Unregister DLL and OCX

8. How do I unregister .DLL and .OCX files?

9. How do I unregister .DLL and .OCX files?

10. Unregister TLB VBR EXE OCX DLL

11. VB calling DLL using Third party .ocx

12. Help Using Cards.DLL API calls.

 

 
Powered by phpBB® Forum Software