Article View: borland.public.cppbuilder.nativeapi
Article #1618Re: CreateDialogIndirect and DLGTEMPLATE
From: JD
Date: Sat, 07 Jul 2007 17:52
Date: Sat, 07 Jul 2007 17:52
25 lines
1575 bytes
1575 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote:
>
>>The sample in the win32.hlp compiles but always returns -1.
>
>That's odd.
>CreateDialogIndirect is supposed to return NULL or an HWND
My win32.hlp says -1 if it fails as does MSDN:
http://msdn2.microsoft.com/en-us/library/ms645457.aspx
although I see now from MSDN that I can call GetLastError
which I have not done.
> Which example would that be?
Creating a Template in Memory
>I can't find help example for CreateDialogIndirect
Sounds like you did just fine to me <g>.
Thanks!
~ JD
Technical Details
Message-ID:
<468fd2da@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!tethys.csu.net!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<468ec508@newsgroups.borland.com> <s4rt83h1eg7ur1cd8dua5cqberpjnlpr13@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9e1e83f08c218dc2 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "JD" <nospam@nospam.com> From: "JD" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <468ec508@newsgroups.borland.com> <s4rt83h1eg7ur1cd8dua5cqberpjnlpr13@4ax.com> Subject: Re: CreateDialogIndirect and DLGTEMPLATE Date: Sat, 7 Jul 2007 12:52:22 -0500 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 NNTP-Posting-Host: 172.163.97.211 Message-ID: <468fd2da@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1183830746 172.163.97.211 (7 Jul 2007 10:52:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!tethys.csu.net!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail