|
#if! defined (AFX_PRINTER_H)
#define AFX_PRINTER_H
#if _MSC_VER> = 1000
#pragma once
#endif // _MSC_VER> = 1000
#include "resource.h" // main symbols
#include "StdAfx.h"
class CPrinter {
public:
CPrinter ();
virtual ~ CPrinter ();
public:
HDC GetPrintHandle ();
BOOL IsCurrentPrinter ();
void EnumPrinter (CList <CString, CString> * lstKeyName);
void PrintSickTR (LPCTSTR lpszHospitalName, HDC hDCPrinter);
private:
int m_nPaperWidth;
int m_nPaperHeight;
CRect m_rectPaper;
};
#endif
The error message in .cpp is:
error C2653: 'CPrinter': is not a class or namespace name |
|