solved: Installing ActiveX DLL's on NT Servers

At 02:39 PM 06/07/2000 -0700, you wrote:

We’ve written an ActiveX DLL using Active Template Library (ATL) which, like
most, self-registers the first time it’s used on a given box. This works
great on every NT Workstation machine we’ve got - but for some reason, we
can’t get it to register on any NT Servers. We’ve tried doing it manually,
too, with RegSvr32 without success. The errors coming back range from
REGDB_E_CLASSNOTREG (Class not registered - duh!) to ERROR_INVALID_ORDINAL.

Turned out to be an old version of ATL.DLL. Updating to the latest version
resolved the problem.

Thanks!

> We’ve written an ActiveX DLL using Active Template Library (ATL) which,
like

most, self-registers the first time it’s used on a given box. This works
great on every NT Workstation machine we’ve got - but for some reason, we
can’t get it to register on any NT Servers. We’ve tried doing it manually,

Compile the DLL with _ATL_STATIC_REGISTRY defined.
The ATL registry routines are in atl.dll by default - and called via COM
(atl.dll
is an InprocServer for some class).
_ATL_STATIC_REGISTRY forces to put the ATL registry code inside your
DLL - and thus eliminates any need in atl.dll

Max

Make sure the ATL libraries are also registered with regsvr32. I had a very
similar problem with Win95 systems.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Richard Hartman
Sent: Wednesday, June 07, 2000 4:39 PM
To: NT Developers Interest List
Subject: [ntdev] Installing ActiveX DLL’s on NT Servers

We’ve written an ActiveX DLL using Active Template Library (ATL)
which, like
most, self-registers the first time it’s used on a given box. This works
great on every NT Workstation machine we’ve got - but for some reason, we
can’t get it to register on any NT Servers. We’ve tried doing it manually,
too, with RegSvr32 without success. The errors coming back range from
REGDB_E_CLASSNOTREG (Class not registered - duh!) to
ERROR_INVALID_ORDINAL.

MSDN doesn’t seem to have anything helpful to offer. Suggestions
gratefully
accepted. Thanks!


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to $subst(‘Email.Unsub’)