🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7851

Re: Printer properties

#7851
From: Deepak Mishra
Date: Fri, 17 Dec 2004 06:53
24 lines
1589 bytes
If we look at the code below:

>	PRINTDLG pd;

>       // Initialize the PRINTDLG members. 
>	pd.lStructSize = sizeof(PRINTDLG); 

The print dialog is not appearing...

>	PrintDlg(&pd);

There is a problem here.

The PRINTDLG structure size passed to PrintDlg is wrong.
The correct one is 66 not 68 returned by sizeof(PRINTDLG) operator.

Writing 66 instead of using sizeof might be a working solution, but I don't think that's a good idea. 

Not able to find the reason.

Regards,
Deepak Mishra
 
Technical Details
Message-ID: <41c28262$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41bfe84c$1@newsgroups.borland.com> <6ro0s0pgsjn6kr7lnhkb68gtfkr2g0glm2@4ax.com> <41c162f7@newsgroups.borland.com> <r2c3s0ta1bn5u16c3cmv5fi5nf3bfn09cr@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6620db7697e43cb9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Deepak Mishra" <deepak.dmishra@gmail.com>
Sender: "Deepak Mishra" <deepak.dmishra@gmail.com>
Reply-To: "Deepak Mishra" <deepak.dmishra@gmail.com>
Subject: Re: Printer properties
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 61.246.193.66     
References: <41bfe84c$1@newsgroups.borland.com> <6ro0s0pgsjn6kr7lnhkb68gtfkr2g0glm2@4ax.com> <41c162f7@newsgroups.borland.com> <r2c3s0ta1bn5u16c3cmv5fi5nf3bfn09cr@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41c28262$1@newsgroups.borland.com>
Date: 16 Dec 2004 22:53:22 -0800
X-Trace: newsgroups.borland.com 1103266402 207.105.83.66 (16 Dec 2004 22:53:22 -0800)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail