I need to load a string which is placed in the resource dll of a different process, provided that the process will be running at the time of call.
I tried following code -
HMODULE hRes = ::LoadLibrary(_T("SomeResource.dll"));
TCHAR buffer[50];
::LoadString(hRes, IDS_SOME_ID, buffer, 50);
This code is working fine while running in debug mode. But in release mode LoadLibrary returns zero. Why?
Am I missing something? Please help me.
I am using VC7.1 compiler.