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

后端 未结 3 1946
遥遥无期
遥遥无期 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 08:06

    You could use LoadString directly instead. Here's some text from the MSDN FindResource documentation...

    An application can use FindResource to find any type of resource, but this function should be used only if the application must access the binary resource data by making subsequent calls to LoadResource and then to LockResource.

    To use a resource immediately...

    ...use LoadString!

提交回复
热议问题