c++ - LoadString, static library and executables -


My project is set up, so all framework codes and modules are fixed. (Let us use it in the Framework.lib ), and many test project frameworks. Use Lib and compile executable files.

To deal with the error, I am trying to insert the resource string in the framework.rc ( framework.lib project part) and load Do the wire in executable files. However, LoadString () just fails

> GetLastError () / using FormatMessage () I get the following message:

"The specified resource type can not be found in the image file."

How do I call LoadString , which gives 0 s:

  four szString [256]; Int iNbOfChars = LoadString (GetModuleHandle (NULL), iStringID, szString, 256);  

Can I fail because the resource is not defined in the app, but in Lib? If so, can I have a centralized resource file for any suggestions? Static Libraries are only consultation OBJ files - they do not have resources like resources to do this. Need to be put in DLL.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -