Problem with service and ActiveX EXE
Here is the problem
We have an ActiveX EXE that contains an object that must be used by
both a
service and a GUI application. We need to create the object once and
then
get a reference to it.
This object is registered on the ROT.
The service uses a DLL that creates the object in the EXE by calling
CreateObject("ObjectName"). This spawns the EXE process. The GUI then
gets a
reference to the object by calling GetObject(,"ObjectName").
The problem is that when the EXE gets run by the service, the GUI
cannot get
the reference to the object. We get an "ActiveX cannot create object"
error.
If we create the object in an application (not a service) we can then
get a
reference to it from the GUI with no problem.
The service is running under a user with Administrator privileges, not
the
Local System account.
Is there anything that needs to be done special when the service
creates the
object. Security context?
TIA
Sent via Deja.com http://www.*-*-*.com/
Before you buy.