使用基于Define的不同资源文件 [英] Use Different Resource File Based on Define

查看:75
本文介绍了使用基于Define的不同资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小项目,需要创建第二个项目,其中大约90%的代码是相同的。它只需要几个#ifdef来排除某些代码。同时我必须确保相应地修改所有文件信息,
,即.rc文件中的FileDescription,OriginalFilename,ProductName。有没有办法让两个.rc文件并根据#define / Preprocessor选择合适的文件?

I have a small project and need to create a second project where about 90% of the code is the same. It will just require a couple of #ifdef to exclude certain code. At the same time I have to make sure that all the file information is modified accordingly, i.e. FileDescription, OriginalFilename, ProductName in the .rc file. Is there a way to have two .rc files and select an appropriate one based on a #define/Preprocessor?

推荐答案

有没有MFC?


这篇关于使用基于Define的不同资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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