Article View: borland.public.cppbuilder.nativeapi
Article #16769GetOpenFileName problem
From: John Berg
Date: Tue, 29 Apr 2003 02:52
Date: Tue, 29 Apr 2003 02:52
2 lines
1375 bytes
1375 bytes
I'm building a pure API application with C++ Builder6. The 'sizeof' function returns a value of 88 bytes for the OPENFILENAME structure, which causes a CDERR_STRUCTSIZE error and prevents the Open common dialog box from appearing. Apparently the correct size is 76 bytes. When this is coded directly into lStructSize the dialog box appears just fine. Same code under Borland C++ 5.02 works OK, as 'sizeof' returns the value of 76. What's wrong with Builder6?
Technical Details
Message-ID:
<3eade901$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5577b493e5ad6bb9,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-28 20:02:05 PST From: "John Berg" <jrberg@deltanet.com> Sender: "John Berg" <jrberg@deltanet.com> Reply-To: "John Berg" <jrberg@deltanet.com> Subject: GetOpenFileName problem Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 66.239.49.150 66.239.49.150 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3eade901$1@newsgroups.borland.com> Date: 28 Apr 2003 19:52:49 -0700 X-Trace: newsgroups.borland.com 1051584769 207.105.83.65 (28 Apr 2003 19:52:49 -0700) Lines: 2 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail