-
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.
-
Re: NT ATL Service
Hi,
In WinMain()
you add this code
AfxSetResourceHandle(hInstance);
afxCurrentInstanceHandle=hInstance;
This will work
Regards,
Anil Elson