如何制作多语言dll支持应用程序多语言版本

要让vc编写的程序支持多语言有几种方法,用xml或ini来动态load,现在介绍一种比较原始的方法,就是做一个资源dll,把resource.h和*.rc加入到一个空的dll工程中来,特别要注意的是下面:

/NOENTRY (No Entry Point)

/NOENTRY

The /NOENTRY option is required for creating a resource-only DLL.

Use this option to prevent LINK from linking a reference to _main into the DLL.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. 
  2. Click the Linker folder.
  3. Click the Advanced property page.
  4. Modify the Resource Only DLL property.

我给翻译一下,大意是说:要在visual studio开发环境的工程属性页的链接器选项里选择"高级"子属性页,选中仅有资源的dll属性,选择是。

也可以直接在"命令行"子属性选项里加入/NOENTRY,这样就表明没有入口点的dll,否则的话会编译不过去。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值