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

ActiveX Custom Control Registration?

Status
Not open for further replies.

SalemGrafix

IS-IT--Management
Jun 12, 2003
46
US
I created a custom control for some custom reports that I'm doing for work. The custom control works great, and I've used it in 2 programs that I've created so far. The problem I run into is when I try to install the program(s) on another computer, the Custom Control doesn't seem to get registered.

I'm using VB6, creating a User Control (OCX), saving and compiling the OCX, and using that in another VB Project. The final project is then compiled into an exe, and using the VB Package and Deployment, creating a setup routine to be installed on other machines. I have manually added the component into the setup routine, and all seems to go well, until we try to run the program on another machine.

I believe that it may be due to not registering the component on the other machine. I have tried to use the "regsvr32 customcontrol.ocx" command, but no luck with that either. Also, oddly enough, I can use the custom control on my machine in VB, but not in Access. I'm starting to think that there is a subroutine or call that I need to include to make this work, but I'm not sure what I'm missing.

Thanks for any help or advice on custom control registration anyone can give me.
 
Are you installing the OCX in the system directory? The PDW should handle registration OK. Open setup.lst in the Support folder in Notepad. There should be a line in the [Bootstrap Files] section for the OCX, specified to self-register:

File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/98 12:00:00 AM,22288,4.71.1460.1

If you copy your OCX into the system folder on a test PC and run:

regsvr32 customcontrol.ocx

does it still fail?

Paul Bent
Northwind IT Systems
 
Yes, that line does exist in the Setup.lst file. As for the "regsvr32" command, I will try that on a clean PC, and see what happens.

Oddly enough, when I run the package and deployment now, I'm getting an "Unexpected error number 429 has occured: ActiveX component can't create object". That error, I will search on the internet for, and hopefully can find out what's causing that.

Thanks for your response on the above post, and I'll post what I find out about the the "regsvr32".
 
Okay, the problem with the 429 error is resolved, the "hostwiz.dll" file needed to be re-registered. As for the other issue, I will have to try that out later today and get back on the "regsvr32" option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top