Click to See Complete Forum and Search --> : OCX Registration - Urgent please!!!


Yogesh Sontakke
July 19th, 1999, 01:56 AM
Hi,

I am having problem registering an ActiveX Control made in VC++ 6.0 on any machine which does not have VC++6.0. Tried copying (and overwriting) the required dlls(MFCx0.dll, MSVCRTx0.dll, OLEPRO32.dll, OLEAUT32.dll) as mentioned in MSDN. I am using the RegSvr32.exe program to register the same.

It gives an error - "LoadLibrary failed" with an error code of 0x00000485(i.e Required library file missing).

Are there any other files which are required or what else could the prob be?

Any inputs would be appreciated.

Thanx in advance.

Yogesh.

ColsonJL
July 19th, 1999, 04:07 AM
run the following command:(DOS box,or windows run)

regsrv32 yourOCXname.OCX

regsrv32 will register your OCX in the registry

ColsonJL
July 19th, 1999, 04:15 AM
You must also register the DLL's you're using, don'you ?

Sejal
July 19th, 1999, 06:42 AM
Yogesh,

Run Depends.exe.
It will list out all the files on which the OCX depends.
Make sure all those files are present on the machine on which you wish to register the OCX.

This utility comes with VC++ x.0.

HTH
Sejal