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

Thread: NT ATL Service

  1. #1
    Guest

    NT ATL Service

    Is anyone having problems with resources, namely resource strings, in an NT COM Service.exe server implemented from ATL (statically linking with MFC). The AFX_MANAGE_STATE() load-state macro doesn't fix it either. Basically I get an assertion() when trying to do a CString::LoadString(nResId) from the service.

    Thanks in advance!

    Steve B.


  2. #2
    Join Date
    Apr 1999
    Posts
    2

    Re: NT ATL Service


    Hi,


    In WinMain()

    you add this code

    AfxSetResourceHandle(hInstance);
    afxCurrentInstanceHandle=hInstance;

    This will work

    Regards,
    Anil Elson



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