c++stringvisual-studiomfcresource-loading

Resource string in dll not entirely visible after loading it in a program


I made a C++ DLL plugin statically linked to MFC for a certain program (I don't have its source code) using VS2008.

After integrating my plugin to the software, everything worked fine except for a string resource which corresponds to my plugin's name and which I declared in my resource file as follows :

    STRINGTABLE  
    LANGUAGE 9, SUBLANG_DEFAULT
    BEGIN
        IDS_PRC_TEST "TEST"
    END 

then I defined it in the "resource.h" header :

    #define IDS_PRC_TEST            210

My problem is that on the plugin list in the software I only get the first letter of this string resource the "T" from "TEST".

So I do not see why my string resource isn't entirely loaded if the one from the other plugin is.

Please feel free to ask me questions to clearify my explanation if it wasn't clear enough.

Thank you in advance for your answers.


Solution

  • Thanks to the comments on the question I got this fixed. It was indeed a Unicode/Multibyte problem. So all I had to do is change the project's encoding in the Project->Properties->Configuration properties->General