Click to See Complete Forum and Search --> : NT ATL Service


April 5th, 1999, 12:17 PM
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.

Anil A Elson
April 8th, 1999, 08:26 AM
Hi,


In WinMain()

you add this code

AfxSetResourceHandle(hInstance);
afxCurrentInstanceHandle=hInstance;

This will work

Regards,
Anil Elson