Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

registering activex

0 views
Skip to first unread message

lofty

unread,
Dec 10, 1997, 3:00:00 AM12/10/97
to

I've a problem registering my activex control that i've made by using visual
c++. The problem occurs on a pc which has not have visual c++.
I use the regsvr32, and got the error message :-
load library ("mycontrolname.ocx") failed
GetLastError return 0x00000485
Does anyone know what's the problem ..?? What file that I miss ..?
Even when I made the setup application, still my OCX could not be registered
on a pc which has no visuall c+ in it.
Your help will be very appreciated .... Thanks
- LOFTY -

Si Ja

unread,
Dec 10, 1997, 3:00:00 AM12/10/97
to lofty

1157 One of the library files needed to run this application cannot be found.
ERROR_DLL_NOT_FOUND

Run DUMPBIN on the machine with VC++ (dumpbin /imports mycontrolname.ocx) and
verify that all required DLLs are included in the distribution. MSVCRT.DLL is
commonly overlooked.

js
(error codes can be found in winerror.h. 0x485=1157 decimal)

lofty wrote:

--
Remove SPAMLESS to reply.

Guido Ramseier

unread,
Dec 10, 1997, 3:00:00 AM12/10/97
to lofty

Could it be that your Active X control is using other DLLs or components
which are not on the PC you are trying to register it on. For example
MFC DLLs, ODBC or DAO components etc..

Hope this helps

Guido

Joe Know

unread,
Dec 10, 1997, 3:00:00 AM12/10/97
to

I've noticed the same problem with a recent activex OCX that
we created. Our other OCX's are registering without a problem
but this recent one follows active X and it will not register on
certain Win95 systems but it doesn't have a problem when its in NT.
I have chased down all the dependency DLL's and registry entries
and everything is where it should be . . . except!

This is a registry entry for Component Catagories Manager on NT:

HKEY_CLASSES_ROOT\CLSID\{0002E005-0000-0000-C000000000000046}
"Component
Categories Manager"
InprocServer32 comcat.dll

On the failing Win95 systems it has OLE32.dll instead of comcat.dll as
its entry.

Ralph

Erik Skyten

unread,
Dec 11, 1997, 3:00:00 AM12/11/97
to

Are you building the ActiveX control using ATL 2.x ?

ATL 2.1 ActiveX controls use ATL.DLL for the registry. If you
developed the control on one system (MSDEV system) and then put the
DLL on another system without the ATL.DLL, you will not be able to
register it. The error you are getting is an unresolved external
dependency.

You can fix this by:

#define _ATL_STATIC_REGISTRY

at the top of your stdafx.h file

0 new messages