Article View: att.lang.c++
Article #292EndPage(HDC) causes compile error
From: Jon Krahmer
Date: Wed, 10 Dec 1997 00:00
Date: Wed, 10 Dec 1997 00:00
33 lines
1376 bytes
1376 bytes
Hello,
iEscapeRet=::Escape(hdcPrn_PD,STARTDOC,sizeof(szDOCINFO),szDOCINFO,NULL);
When compile with MS-Visual C++ 2.0; will work.
When compile with MS-Visual C++ 5.0; will *not* work.
I wrote a print routine that will not compile with MS-Visual C++ 2.0
or with MS-Visual C++ 5.0.
HDC hdcPrn_PD=0; //No problem
...
StartDoc(hdcPrn_PD,&diDOCINFO_PD); //No problem
...
StartPage(hdcPrn_PD); //No problem
...
EndPage(hdcPrn_PD); //I get the following error:
G:\MSVC50\BIN\FMNW\PRINTFAX.CPP(868) : error C2064: term does not
evaluate to a function
If you know why this is, please point me in the right direction.
Thank you!
Kind Regards,
Jon Krahmer, ElectraSoft
Please use: FaxMail@ElectraSoft.com
Get newest version of FaxMail for Windows or FaxMail Network for NT, free:
www-page: http://www.ElectraSoft.com/ or http://www.blkbox.com/~jonk/
Author member of Association of Shareware Professionals (ASP)
Technical Details
Message-ID:
<66miie$jct$1@synthemesc.insync.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4ba,ecc541db696e629b,start X-Google-Attributes: gid10d4ba,public From: FaxMail@ElectraSoft.com (Jon Krahmer) Subject: EndPage(HDC) causes compile error Date: 1997/12/10 Message-ID: <66miie$jct$1@synthemesc.insync.net> X-Deja-AN: 296959773 Organization: ElectraSoft Newsgroups: att.lang.c++