在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不存在我错的地方