我写了这段代码,但它给出了一个错误。为什么不包含头文件?
编码:
#include "BitmapEx.h"
CBitmapEx bitmapEx;
bitmapEx.Load(_T("Enter bitmap source file path here..."));
bitmapEx.Rotate(45);
bitmapEx.Sepia();
bitmapEx.Scale(50, 50);
bitmapEx.Draw(hDC);
bitmapEx.Save(_T("Enter bitmap destination file path here..."));
错误: 无法打开包含文件:“BitmapEx.h”:没有这样的文件或目录
最佳答案
很明显,就像错误消息告诉您的那样,它找不到文件。你拼写正确的名字吗?它是否在当前目录中,或者如果不在当前包含路径中?
关于c++ - BitmapEx.h 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3103965/