🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: can't start print dialog box

#13273
From: Remy Lebeau (TeamB)
Date: Fri, 17 Oct 2003 19:42
15 lines
1545 bytes
"Richard Yu" <richard@colorselector.com> wrote in message
news:3f901b2f$1@newsgroups.borland.com...

>         pPDX = (LPPRINTDLGEX)GlobalAlloc(GPTR, sizeof(PRINTDLGEX));

There is no need to dynamically allocate the PRINTDLGEX structure.  It will
work just fine on the stack like you had it earlier.  The only issue is with
initializing its inner members correctly as needed.

Also, any memory that you do dynamically allocate, don't forget to free it
when you're done.


Gambit
Technical Details
Message-ID: <3f904582$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f8f1905$1@newsgroups.borland.com> <3f8f1c4f$1@newsgroups.borland.com> <3f8f2eb2@newsgroups.borland.com> <3f8f3efc$1@newsgroups.borland.com> <3f901b2f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,517b17f45791657
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-17 13:04:54 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f8f1905$1@newsgroups.borland.com> <3f8f1c4f$1@newsgroups.borland.com> <3f8f2eb2@newsgroups.borland.com> <3f8f3efc$1@newsgroups.borland.com> <3f901b2f$1@newsgroups.borland.com>
Subject: Re: can't start print dialog box 
Date: Fri, 17 Oct 2003 12:42:03 -0700
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f904582$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066419586 67.22.137.75 (17 Oct 2003 12:39:46 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail