Article View: borland.public.cppbuilder.nativeapi
Article #16592FlashWindowEx, USER32.DLL on WinNT
From: Justin Ridge
Date: Thu, 08 May 2003 13:43
Date: Thu, 08 May 2003 13:43
34 lines
2389 bytes
2389 bytes
Dear all,
My app uses the FlashWindowEx function. It works great when running on Win98 or Win2000. When the app runs on WinNT, I get the error "The procedure entry point FlashWindowEx could not be located in the dynamic link library USER32.DLL".
I understand that FlashWindowEx is not supported on WinNT, and my code checks for its availability (see below). However, this error occurs IMMEDIATELY when I start the app, i.e. way before FlashWindowEx would ever be called.
How can I get the app to start on WinNT?
Thanks!
JR
PS. The code I use to check for the availability of FlashWindowEx is below. It borrows heavily off code others have posted here. The mechanics of how the OS version is checked do not seem to be relevant, because the error occurs prior to this check being done.
// Is this WinNT or Win95?
OSVERSIONINFO ver;
ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&ver);
bool newversion = false;
if (ver.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) { // Win9x
if ((ver.dwMajorVersion) == 4 && (ver.dwMinorVersion > 0))
newversion = true; // Win98
} else
if (ver.dwMajorVersion > 4)
newversion = true; // Win2000,XP
if (newversion) {
FLASHWINFO info = {sizeof(FLASHWINFO), 0};
info.hwnd = Application->Handle;
info.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
info.uCount = 100;
FlashWindowEx(&info);
} else
FlashWindow(Application->Handle, true);
Technical Details
Message-ID:
<3eba5f0e$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.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,2866fa51de16e98a,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-08 06:59:05 PST From: "Justin Ridge" <spamstop@terriertech.com> Sender: "Justin Ridge" <spamstop@terriertech.com> Reply-To: "Justin Ridge" <spamstop@terriertech.com> Subject: FlashWindowEx, USER32.DLL on WinNT Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 66.90.248.143 66.90.248.143 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3eba5f0e$2@newsgroups.borland.com> Date: 8 May 2003 06:43:42 -0700 X-Trace: newsgroups.borland.com 1052401422 207.105.83.65 (8 May 2003 06:43:42 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.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