How do you open a resource string in Visual C++ 2010?

后端 未结 3 1954
遥遥无期
遥遥无期 2021-01-06 07:02

I created a basic stringtable resource in Visual C++. I am trying to access that resource. However, my program can\'t seem to find the resource. Here:

int m         


        
3条回答
  •  情深已故
    2021-01-06 07:57

    After 2 days of research I found this(it works!):

    #include 
    
    ......
    
    ATL::CString str;
    WORD LangID = MAKELANGID(LANG_ENGLISH,SUBLANG_DEFAULT); 
    str.LoadString(NULL,IDS_STRING101, LangID);
    

提交回复
热议问题