tags:

views:

24

answers:

1

i write this code but it gives an error. why it does not include the header file?

coding:

#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..."));

error: Cannot open include file: 'BitmapEx.h': No such file or directory

+1  A: 

Clearly, like the error message tells you, it cannot find the file. Did you spell the name correctly? Is it in the current directory, or if not, in the current include path?

Thomas
the spelling is correct. may be it is not in the directory,how can i load it in the current directory?
Sweety Khan
@Sweety Khan: How to load it into the proper directory is a function of your OS and build system. Your question cannot be properly answered as asked, since it's missing too much information.
David Thornley