Builder C ++在资源中创建STRINGTABLE [英] Builder C++ creating STRINGTABLE in resource

查看:88
本文介绍了Builder C ++在资源中创建STRINGTABLE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在任何地方都找不到如何在Builder C ++ 2010中创建字符串表的方法。我是否必须使用外部编辑器?或者还有其他方法吗?

I cannot find anywhere how to create a stringtable in Builder C++ 2010. Do I have to use an external editor or is there another way?

推荐答案

C ++ Builder 2010没有内置资源编辑器。您可以轻松地添加使用其他工具构建的.res文件,也可以创建.rc文件添加到项目中并具有资源编译器创建资源。以下是包含字符串表的.rc文件的示例

There is no resource editor built in to C++Builder 2010. You can easily add either a .res file built with another tool, or create a .rc file to add to your project and have the resource compiler create the resource. The following is an example of an .rc file which includes a string table

#define IDS_HELLO    1
#define IDS_GOODBYE  2

STRINGTABLE
BEGIN
    IDS_HELLO,   "Hello"
    IDS_GOODBYE, "Goodbye"
END 

这篇关于Builder C ++在资源中创建STRINGTABLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆