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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registering ocx files 1

Status
Not open for further replies.

shyamal

Programmer
Joined
Aug 14, 2000
Messages
79
Location
US
1.Does anyone know of any good utilities to register files?

2. I tried to register some of my files manually but keep
getting errors:
I used the following syntax with\without parentheses:

regsvr32 ( C:\Program Files\Microsoft\Visual Studio\VB98\Wizards\DATAFORM.OCX)

and received a loadlibrary failed error.

Thanks in advance!

 
you may have to put " " around that full path, because it'll think you are trying to register "C:\Program" not "C:\Program Files\Microsoft\Visual Studio\VB98\Wizards\DATAFORM.OCX" common problem in commmand line, you have to put " " around anything with spaces in it.
 
Thanks Karl!

I ended up using a utility that registers and yes I was able to manually register the files as well.
 
Here's a cool little tool that I use on a regular basis! You'll love it. Just copy and paste it and save it as ocxdllreg.reg. Once you save it just double click on it and let it add the information to the registry. Then all you have to do is right click on any DLL or OCX and you have the option to register or unregister it with just a click! Kudos to Jon for this slick little piece of work!

-------<Cut Here>-------
REGEDIT4

; This adds the ability to Right-Click on a .dll or .ocx
; and get the Register / UnRegister options.
;
; If it doesn't work for you, mail me and tell me about it.
; Jon Evans <jon@evansoft.demon.co.uk>

; ==========
; .DLL files
; ==========

[HKEY_CLASSES_ROOT\.dll]
&quot;Content Type&quot;=&quot;application/x-msdownload&quot;
@=&quot;dllfile&quot;

[HKEY_CLASSES_ROOT\dllfile]
@=&quot;Application Extension&quot;

[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@=&quot;regsvr32.exe \&quot;%1\&quot;&quot;

[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@=&quot;regsvr32.exe /u \&quot;%1\&quot;&quot;

; ==========
; .OCX files
; ==========

[HKEY_CLASSES_ROOT\.ocx]
@=&quot;ocxfile&quot;

[HKEY_CLASSES_ROOT\ocxfile]
@=&quot;OCX&quot;

[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@=&quot;regsvr32.exe \&quot;%1\&quot;&quot;

[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@=&quot;regsvr32.exe /u \&quot;%1\&quot;&quot;

; End
-------<Cut Here>-------
 

Steve,

Can you elaborate on this utility! Do you paste this code in a notepad document? Where exactly do you save it? [sig][/sig]
 
Paste the code into Notepad and then save it anywhere on your drive. Remember where you saved it, then open Windows Explorer and navigate to the dir where you saved the file. Then just double click on the file and you should get a message that the contents of the file was successfuly added to your registry. You don't need the file on the system anymore after you enter it in the registry, but it'd be a nice one to keep around somewhere.

Once you have it entered in, right click on an OCX or a DLL and you'll get the option to register or unregister it.
[sig]<p>Steve<br><a href=mailto:tribesaddict@swbell.net>tribesaddict@swbell.net</a><br><a href= > </a><br> [/sig]
 

Thanks Steve,

This is pretty neat. How do you poeple come up with this stuff??? :-) [sig][/sig]
 
Twern't me... Jon wrote it, I just happened to run across it on the net one day. [sig]<p>Steve<br><a href=mailto:tribesaddict@swbell.net>tribesaddict@swbell.net</a><br><a href= > </a><br> [/sig]
 
One other thing about this is that if you select multiple DLL's to register, it will register them ALL with one click. I assume that Unregistering them would work the same way. [sig]<p>Steve<br><a href=mailto:tribesaddict@swbell.net>tribesaddict@swbell.net</a><br><a href= > </a><br> [/sig]
 
tribesaddict you're a star!
I came on here to drop a message on about that Reg Setting!

Started a new job and forgot to copy it onto a disc when I left the last one!

After two weeks of DLL programming I was pulling my hair out!

Cheers to both you and Jon@Evansoft.

Fantastic!

m. [sig]<p>Ben Marshalsea<br><a href=mailto: > </a><br><a href= > </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top