c++ - How to load a string from the resource of a different process? -


I need to load a string that has been placed in a different processing resource DLL, provided the process must be run Call time

I tried the following code -

  HMODULE hRes =: Load Library (_T ("SomeResource.dll")); TCHAR buffer [50]; :: LoadString (HRS, IDSISOMIMIID, buffer, 50);  

This code is working fine while running in debug mode. But LoadLibrary returns zero in release mode. Why?

Am I missing something? Please help me

I am using the VC7.1 compiler.

This might be locate "SomeResource.dll" Problem When you run from the debugger, the path of the executable project starts with. If DLL can get it from there it's OK. When you run from outside the IDE, the executable is started from a separate folder. It can be that DLL can not be found from there.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -