小编Dap*_*apu的帖子

如何在C++中调用字符串资源

在resource.h中

#define String1 333
Run Code Online (Sandbox Code Playgroud)

在resource.rc中

#include <windows.h>
#include "resource.h"

STRINGTABLE
{
    STRING1                   "hie people"
}
Run Code Online (Sandbox Code Playgroud)

在main.cpp中

#include<iostream.h>
#include<resource.h>
#include<windows.h>
using namespace std;
int main{
cout<<here i want to output string value from resource how to call the string;
}
Run Code Online (Sandbox Code Playgroud)

还有一个我在代码块中编译的问题.就是说resource.h不存在我错的地方

string resources visual-c++

4
推荐指数
1
解决办法
7138
查看次数

标签 统计

resources ×1

string ×1

visual-c++ ×1