acmilan作者
10年5个月前修改于 10年0个月前IP:四川
822927
1楼

使用字符串资源的传统方法是使用LoadString,分配65536个字符的数组即可。

// main.cpp

#include <windows.h>

__declspec(thread) static wchar_t g_resstr[65536];

int main()
{
	LoadString(NULL, 1001, g_resstr, 65536);
	MessageBox(NULL, g_resstr, L"资源字符串", MB_OK);

	return 0;
}
</windows.h>
评论
文号 / 822927

千古风流
名片发私信
学术分 4
总主题 466 帖总回复 2942 楼拥有证书:进士 学者 笔友
注册于 2009/05/30 21:22:42最后登录 2019/01/31 17:16:38
主体类型:个人
所属领域:无
认证方式:邮箱
IP归属地:0

个人简介

暂未填写
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的