Please be careful when include a resouce.h file to any cpp to avoid regression.
来源:互联网 发布:淘宝裤子50字评价 编辑:程序博客网 时间:2024/05/17 21:49
I summarize all the points that you should pay attention to before you want to include a resource.h file to any cpp.
1. You should confirm that when you define a new resource, there don’t exist the Macro Re-definition.
You can confirm this by search the new defined macro in your solution, or you can see the build log to check whether have the warning of Macro Re-definition or not, or raise the compiler parameter to set the Macro Re-definition warning as Error by Add: /WE4005 to your project build:
If the Macro have re-definition, there will exist the potential defects,
More details of this potential defects, just see the bottom of this thread.
1. When you try to load a string using LoadString, I would recommend that you specified the hInsance HANDLE as the first parameter of CString’s LoadString, this do really help us avoid some potential issues.
2. If you try to use TUxCommonUtils::LoadString(string macro definition) to load the string resource from TransUtilsRes.dll, please keep in your mind that the string macro definition should and must be defined in project TransUtilsRes/Resource.h, if the string resource is defined in other projects, you would not get that string.
This summarize just let you review and refresh your impression about load string, hope this helpful to you.
- Please be careful when include a resouce.h file to any cpp to avoid regression.
- How to avoid the error "The file 'xyz.mdf' cannot be overwritten. when deploying
- Be careful to use iterator - vector.begin()
- What .h file should be include if you want to use colorref
- How to define a template class in a .h file and implement it in a .cpp file
- Use g++ to replace gcc when link the .cpp file
- //outfile.cpp--writing to a file
- Avoid Memory Corruption when Assigning a CComBSTR to a CComVariant's bstrVal Member
- Threads are going to be renewed over time to try and avoid a probable memory leak.
- Threads are going to be renewed over time to try and avoid a probable memory leak.
- BCB的E2209:Unable to open include file *.h
- npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp Do
- Chinese interpreters-Sytra-Article for Translators Be Careful That You Don't Become A Slave To Your Home Business
- The download file appears to be corrupted. Please refer to the Troubleshooting section of the Insta
- Greenplum:ARNING: database "xxxx" must be vacuumed within xxxx transactions,HINT: To avoid a databas
- Be careful when Android up merge
- Cpp拾零(to be continued)
- How to invoke a function from another .cpp source file
- 如何在VC中改变控件的背景色
- 向方法传递对象引用变量时向前看....
- SOA需要认真规划
- 关于鼓励、加油的英语句子
- 安装sql server 2005 提示notificationservices.dll出错的解决办法
- Please be careful when include a resouce.h file to any cpp to avoid regression.
- 个人简历(中英对照)词汇大全
- SOA标准体系离我们还有多远
- 求oracle最大的十条记录.
- 2008.11.06
- ext2.1入门必备
- java中常用的一些方法
- ORACLE锁表查询
- 2008“IBM杯”中国大学生SOA业务流程建模竞赛落幕