|
-
April 5th, 1999, 12:17 PM
#1
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.
-
April 8th, 1999, 08:26 AM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|