VS中语言属性对字符集转码的影响

VS中语言属性对字符集转码的影响

属性文件能够显示特殊字符与以下两句最重要,第一句用于WIN32应用程序,第二句用于驱动程序

#pragma code_page(65001)

RCCODEPAGE=65001

Pragma 指令 - Win32 apps | Microsoft Docs

代码页标识符 - Win32 apps | Microsoft Docs

Language Identifiers - Win32 apps | Microsoft Docs

Win32应用程序

RC文件相关

VERSIONINFO 资源 - Win32 apps | Microsoft Docs

VERSIONINFO resource - Win32 apps | Microsoft Docs

Using RC (The RC Command Line) - Win32 apps | Microsoft Docs

使用 RC(RC 命令行) - Win32 apps | Microsoft Docs

从rc 命令 RCFLAGS = /l0x04b0 /c65001 /d_DEBUG

#define APSTUDIO_READONLY_SYMBOLS

/

//

// Generated from the TEXTINCLUDE 2 resource.

//

#include "winres.h"

/

#undef APSTUDIO_READONLY_SYMBOLS

/

// Language neutral resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

#pragma code_page(65001)

#define APSTUDIO_READONLY_SYMBOLS

/

//

// Generated from the TEXTINCLUDE 2 resource.

//

#ifndef APSTUDIO_INVOKED

#include "targetver.h"

#endif

#define APSTUDIO_HIDDEN_SYMBOLS

#include "windows.h" //win32

#undef APSTUDIO_HIDDEN_SYMBOLS

//#include "afxres.h" //mfc

//#include "verrsrc.h" //mfc

/

#undef APSTUDIO_READONLY_SYMBOLS

/

// Language neutral resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

#pragma code_page(65001)

BLOCK "000004b0"

VALUE "Translation", 0x0, 1200

驱动:

在文件Sources中定义

RC_DEFINES=$(RC_DEFINES) -DRCLANGUAGE=0

RCCODEPAGE=65001

RCOPTIONS (Windows Driver Kit) | Microsoft Docs

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值