I have written a VB6 ActiveX DLL and successfully installed/accessed it on a remote server (via COM+). I've also written a C++ NT service that must access this remote COM+ app.
If I run the C++ application as a console app (vs as a true NT service), it works. But, once installed as an NT service, the service fails upon my very first call to a function located inside the COM+ object.
Here's how my C++ service is set up:
========================================================
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
...
//create COM+ object
mTisc.CreateInstance(__uuidof (clsTISC));
//Call function within newly created instance
mTisc->SetPropertiesFromINI("C:\\TISC.INI"//Pgm fails here!
========================================================
Could this be a roles/security issue? Or, has it to do with my use of COINIT_APARTMENTTHREADED? Remember, this same code works if I run the program as a console app.
Any help would be greatly appreciated!!
If I run the C++ application as a console app (vs as a true NT service), it works. But, once installed as an NT service, the service fails upon my very first call to a function located inside the COM+ object.
Here's how my C++ service is set up:
========================================================
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
...
//create COM+ object
mTisc.CreateInstance(__uuidof (clsTISC));
//Call function within newly created instance
mTisc->SetPropertiesFromINI("C:\\TISC.INI"//Pgm fails here!
========================================================
Could this be a roles/security issue? Or, has it to do with my use of COINIT_APARTMENTTHREADED? Remember, this same code works if I run the program as a console app.
Any help would be greatly appreciated!!