Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Register / Unregister ActiveX components.

Status
Not open for further replies.

Quros

Programmer
May 31, 2001
20
GB
Hi,

Does anyone know how on erath I can dynamically register / unregister activeX components from within a piece of VB code, given only the file name.

Those guys at microsoft rekon the way to do it is make some function declarations much like API calls, which call the DllRegisterServer and DllUnRegisterServer functions. This is fine, but not dynamic as I can not dynamically modify the file names in the function declarations..... or can I?

If anyone has a solution, it would be much appreciated.

Quros.
 
execute the command line
regsvr32 pathtodllOrOcx to register and
regsvr32 /u pathtodllOrOcx to unregister.
I don't know which function in VB executes shell command. John Fill
1c.bmp


ivfmd@mail.md
 
I thought you might say that.
 
I'm a C++ progrgammer. But I believe what in VB should be some functions like ShellExecute("command line here") John Fill
1c.bmp


ivfmd@mail.md
 
I am sure there is, thanks for the suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top