问题:
IntelliSense: identifier "IDC_BUTTON4" is undefined
解决方案:
首先看看控件的ID是不是IDC_BUTTON4
如果是IDC_BUTTON4的话,再包含头文件resource.h
错误:
error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
解决方法:
选项Project|Properties|C/C++|Preprocessor|Preprocessor Definitions
添加_CRT_SECURE_NO_DEPRECATE和_SCL_SECURE_NO_DEPRECATE