Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Windows Service (Exception: CreateDispatch returning scode = CO_E_SERVER_EXEC_FAILURE

Question posted by: kieferzhen (Newbie) on July 25th, 2008 12:29 PM
I am writing a Windows NT Service based on a MFC EXE with VC++ 6.0. This windows service should use Automation (COM) to read data from a server application every minute.

MFC EXE always worked.

But if I run my windows service which has the same function like MFC EXE from Service Management Control. I always get the exception: CreateDispatch returning scode = CO_E_SERVER_EXEC_FAILURE ($80080005).

Why it doesn't work when it is a windows service? What could be the cause ? How to resovle it?
Reply
Not the answer you were looking for? Post your question . . .
189,161 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top C / C++ Forum Contributors