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

registering a control

Status
Not open for further replies.

pancharajoe

Programmer
Joined
Feb 1, 2001
Messages
1
Location
AE
how do i register a control
 
If you install it as per the suppliers instructions it should be registered. I registered a Threed control that I had in an old version of vb to run in vb6 using a program called Regedit.exe followed by the name of the OCX file for that control.
 
You can also register files by using the program REGSVR32.EXE. Use the command:

REGSVR32 my.dll

And you can unregister a file with the command

REGSVR32 my.dll /u

Run command REGSVR32 by itself for full help.
 
Sorry I meant REGSVR32 and not REGEDIT of course!
 
pancharajoe:

With the Dos prompt and c:\Windows\System

type regsvr32.exe blabla.OCX and Enter to register.

The programs regsvr32.exe can you find on you VB CD ,copy and paste it to Windows System

Eric De Decker
vbg.be@vbgroup.nl

Licence And Copy Protection AxtiveX
Download ActiveX and test in VB
Source CodeBook for the programmer
 
Eric -

I've done this in the registry:
[tt]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\Register]

[HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
@="\"regsvr32\" \"%1\""

[HKEY_CLASSES_ROOT\dllfile\shell\UnRegister]

[HKEY_CLASSES_ROOT\dllfile\shell\UnRegister\command]
@="\"regsvr32\" \"/u\" \"%1\""
[/tt]

This causes "Register" and "UnRegister" to appear on the popup-menu for all DLL's. You can do the same for OCX's by modifying the "ocxfile" entry under the root. If the "ocxfile" isn't there, change the default value under the ".ocx" key to say "ocxfile", then create the "ocxfile" entry (all under HKEY_CLASSES_ROOT).

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top