VC6.0知识补充
在一个 DLL 工程Slave_Program中,在新建一个 CFormView 新类CXXXFormView时,CXXXFormView.cpp中 会自动 包含
#include “Slave_Program.h”
但是,DLL 工程本身在创建过程中就没有与工程名相对应的 头文件 Slave_Program.h
这时就会出现编译错误
fatal error C1083: Cannot open include file
error BK1506 : cannot open file '.\Debug\CXXXFormView.sbr': No such file or directory
解决问题的方法是: 删除 #include “Slave_Program.h”
在 CXXXFormView.h文件中加入
#include "resource.h"