🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #308498

Re: FileOpenDialog i nieznany błąd

#308498
From: slawek
Date: Wed, 27 Apr 2016 20:15
29 lines
1977 bytes

Użytkownik "slawek"  napisał w wiadomości grup 
dyskusyjnych:57211650$0$698$65785112@news.neostrada.pl...

>Kompilowałem to MinGW32 GCC na XP i na 7, z 
>opcjami -m32 -march=i586 -O3 -std=gnu99 -D_WIN32_IE=0x0500 -DWINVER=0x410.

Aktualnie  jest w commdlg.h

#if (_WIN32_WINNT >= 0x0500)
    void * pvReserved;
    DWORD dwReserved;
    DWORD FlagsEx;
#endif /* (_WIN32_WINNT >= 0x0500) */

Natomiast w windef.h

#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER

Czyli WINVER powinno wymusić odpowiedni wariant struktury OPENFILENAME i co 
tam trzeba.

Nota bene, domyślnie jest w windef.h po prostu WINVER=0x400

Tymczasem i GetOpenFileName, i GetSaveFileName, upierają się aby, w czasie 
wykonania, zamiast tego co trzeba, robić coś jakby MessageBox z napisem 
"niespodziewany błąd".
Technical Details
Message-ID: <57211dfc$0$641$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <5721086f$0$689$65785112@news.neostrada.pl> <nfr2e5$d73$1@node1.news.atman.pl> <57211650$0$698$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "slawek" <somebody@somewhere.pl>
Newsgroups: pl.comp.lang.c
References: <5721086f$0$689$65785112@news.neostrada.pl> <nfr2e5$d73$1@node1.news.atman.pl> <57211650$0$698$65785112@news.neostrada.pl>
In-Reply-To: <57211650$0$698$65785112@news.neostrada.pl>
Subject: Re: FileOpenDialog i nieznany błąd
Date: Wed, 27 Apr 2016 22:15:53 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 15.4.3508.1109
X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3508.1109
Lines: 30
Message-ID: <57211dfc$0$641$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 79.184.93.216
X-Trace: 1461788156 unt-rea-b-01.news.neostrada.pl 641 79.184.93.216:5213
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit