文件头的问题
日期:2007-10-10 荐:
文件头的问题#ifndef DIP_H#define DIP_H#define WIN31#define PI 3.1415926#include <windows.h>#include <commdlg.h>#include <stdio.h>#include <string.h>#include <math.h>#include "resource.h"#include <owl.h>struct COMPLEX{float re,im;};_CLASSDEF(TDipApp)class TDipApp:public TApplication{public:TDipApp(LPSTR AName,HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow):TApplication(AName,hInstance,hPrevInstance,lpCmdLine,nCmdShow){};virtual void InitMainWindow();};_CLASSDEF(TDipWindow)class TDipWindow:public TWindow{protected:BITMAPFILEHEADER bmpFileHeader;BITMAPINFOHEADER bmpInfoHeader; int nW,nH;RGBQUAD Quad[256];HCURSOR hSaveCursor,hHourCursor;int rd[9];int cd[9];COMPLEX * omega,* p,* f;COMPLEX huge ** SpaceField,huge ** FreqField;unsigned char huge ** image,huge ** temp;void add(COMPLEX *,COMPLEX *,COMPLEX *);void sub(COMPLEX *,COMPLEX *,COMPLEX *);void mul(COMPLEX *,COMPLEX *,COMPLEX *);int reverse(int,int);void root(int);void fft(int);void nfft(int);void tfft(int,int);void ntfft(int,int);void Show();void GetNeighbour(int,int,unsigned char *);int ThinLeft(void);int ThinRight(void);int ThinTop(void);int ThinBottom(void);void Edge(void);public:TDipWindow(PTWindowsObject pwParent,LPSTR lpszTitle);~TDipWindow();virtual void SetupWindow();virtual LPSTR GetClassName();void WMSize(RTMessage Msg)=[WM_FIRST WM_SIZE];BOOL CMOpen()=[CM_FIRST IDM_OPEN];void CMSave()=[CM_FIRST IDM_SAVE];void CMTower()=[CM_FIRST IDM_TOWER];void CMBridge()=[CM_FIRST IDM_BRIDGE];void CMWord()=[CM_FIRST IDM_WORD];void CMMark()=[CM_FIRST IDM_MARK];void CMClear()=[CM_FIRST IDM_CLEAR];void CM3D_Transfer()=[CM_FIRST IDM_3D];void CMEdge()=[CM_FIRST IDM_EDGE];void CMThin()=[CM_FIRST IDM_THIN];};struct DlgBuf{char s1[20],s2[20],s3[20];DlgBuf(){strcpy(s1,"10000");strcpy(s2,"45"); strcpy(s3,"45"); };};_CLASSDEF(TSetDialog)class TSetDialog:public TDialog{public:TSetDialog(PTWindowsObject AParent,int ResourceID,DlgBuf * buffer);};#endif#include <owl.h>为什么can't include owl.h文件??这个<owl.h>不是自己写的头文件,路径变量也应该设置对了。因为其它的头文件都可以包含进来如果在当前目录#include "owl.h"#include <owl.h>要添加到include路径原来是头文件owl.h文件不是标准的include文件,当然无法包含了你先找到owl.h文件再说,不要根本就没有这个文件!owl看起来是个Borland c 的头文件嘛,用vc编译肯定是找不到了....
标签: