再问 happyparrot
远志999 2005-10-11 09:47:22 我这个类是在dll中的 主要的成员函数是
void CPrint::Print (CWnd* t,CDC* pDC,CPrintInfo* pInfo,int n)
{
no=n;
if(InIt(pDC,pInfo))
{
PrintContent(pDC,pInfo,t);
}
}
void CPrint::PrintContent (CDC* pDC,CPrintInfo* pInfo,CWnd* t)//打印每一页
{
pDC->DrawText(ss,&tempRect,DT_CENTER|DT_TOP|DT_SINGLELINE);
pDC->SelectObject(oldfont);
font.DeleteObject();
.......
}
BOOL CPrint::InIt (CDC* pDC,CPrintInfo* pInfo)//打印初始化
我需要导出一个函数调用此DLL类的成员函数
extern "C" __declspec(dllexport) void __cdecl Print(HWND hWnd,int n)
{
EfiPrint.Print( wnd, &hdcprint, &pInfo, n ); //参数问题
}
这里的参数如何给他们赋值? 谢谢快乐鹦鹉