How do you register and unregister DLL and OCX files to the system.
Printable View
How do you register and unregister DLL and OCX files to the system.
When you compile a DLL it is automatically registered in the registry. You can also register it manually by typing this into the RUN box (START -> RUN):
REGSVR32 <full path to DLL>
IE if you have a DLL called 'mydll.dll' in the root drive of your machine it would be:
REGSVR32 C:\mydll.dll
To unregister a DLL, use:
REGSVR32 /U <full path to DLL>
Word of caution: Before you delete or move any ActiveX component you create, make sure to un-register it first. If you delete one without unregistering it, the registry will still contain an entry for it, even though it no longer exists. This also means your VB References will contain a reference to an invalid ActiveX component (can get messy).
Thats not what i meant, this is a place for DEVELOPMENT, how do i do it PROGRAMICALLY!!!!!!!! how to i register another dll that i didn't create such as msvbvm.dll WITHOUT using a setup wizard in vb
Learn some manners if someone tries to help you; if it's not the right answer so what -- wait for someone else to reply. You are very rude!!! Were you intending to sound this way?
You've never mentioned to have it "programically".
Also please avoid in using upper case for the whole word,
it sounds like you're shouting at someone.
What a non professional.
Just call regserve from the program with the correct params
check out www.codeguru.com/vb there's a sample around how to register compononents in code *without* shelling an app like regsvr32 (thus really in code...)
By the way, you better use a setup since you might need to reboot during setup in order to install that ole dll's stuff, which you can't without booting since windooz is using them.
Sorry about that people but i was placing EMPHASIS not hollering