🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetOpenFileName problem

#16773
From: John Berg
Date: Tue, 29 Apr 2003 04:39
30 lines
2115 bytes
"Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote:
>
>"Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote in message
>news:3eadef87@newsgroups.borland.com...
>
>> So put these in the Defines box as a macro:
>> _WIN32_WINNT=0x400
>> WINVER=0x400
>>
>> That should change it from the 0x500 that it defaults to
>> and should cause the Windows header files to expand
>> with the older, smaller size for the structure.
>
>Also, just an FYI, you can alternatively use the OPENFILENAME_NT4 structure
>instead of OPENFILENAME.  That way, you don't have to alter _WIN32_WINNT or
>WINVER, which effect the entire API as a whole.  By using OPENFILENAME_NT4,
>you'll be using the same structure that Win98 expects, as it doesn't include
>any of the extra fields that OPENFILENAME has for newer OSes.  In fact,
>that's why the API has OPENFILENAME_NT4 in the first place - for backwards
>compatibility.
>
>
>Gambit
>
>
The Defines worked just fine; as you surmised I'm running under
Win98SE.  Will also try the OPENFILENAME_NT4 approach.

Thanks!
Technical Details
Message-ID: <3eae01fe$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eade901$1@newsgroups.borland.com> <3eadef87@newsgroups.borland.com> <3eadf778$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5577b493e5ad6bb9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-28 21:46:14 PST
From: "John Berg" <jrberg@deltanet.com>
Sender: "John Berg" <jrberg@deltanet.com>
Reply-To: "John Berg" <jrberg@deltanet.com>
Subject: Re: GetOpenFileName problem
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 66.239.49.150 66.239.49.150    
References: <3eade901$1@newsgroups.borland.com> <3eadef87@newsgroups.borland.com> <3eadf778$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3eae01fe$1@newsgroups.borland.com>
Date: 28 Apr 2003 21:39:26 -0700
X-Trace: newsgroups.borland.com 1051591166 207.105.83.65 (28 Apr 2003 21:39:26 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail