CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: NT Service?

  1. #1
    Join Date
    Apr 1999
    Posts
    2

    NT Service?

    In the past I have implemented NT Services using Microsoft's sample service code. Now I am trying to implement a service that uses a DLL that I have created. The program works fine without the service code, but when I try to start it as a service using the service code, the service fails with this message "The application failed to initialize properly (0xc0000022).".

    What is my problem?

    Thanks,
    Dan
    [email protected]



  2. #2
    Guest

    Re: NT Service?


    Is your DLL in the path? Running it as a service does not make the directory where the service (exe file) is located the current directory. Just a thought...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured