| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Printer stuff |
NH> I've got a question, I hope you can answer it. The source code was:
NH> pprtdlg = new CPrintDialog(false);
NH> if (pprtdlg->DoModal() == IDOK)
NH> pcdc->Attach(pprtdlg->GetPrinterDC());
NH> delete(pprtdlg->m_pd.hDC); <-------- offending line
NH> delete pprtdlg;
PG> I guess it should be
PG> ::DeleteDC(pprtdlg->m_pd.hDC);
I tried that just now and it worked well. Thank you.
pcdc (used in the second line above) is a pointer to a cdc object.
However, rather than use the line you suggested I used:
pcdc->DeleteDC();
It _seemed_ to work correctly. As far as you can tell, would this be
the same thing?
þ CMPQwk 1.42 999
--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)SEEN-BY: 633/267 270 @PATH: 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.