From: Stephen P. <Ste...@uc...> - 2004-02-26 09:53:15
|
Hi, =20 Could be that I broke this when upping the _WIN32_IE constant to 0x0501. = If you put that back to 0x0400 does it work again? =20 Steve -----Original Message----- From: per...@li... = [mailto:per...@li...]On Behalf Of = Laurent ROCHER Sent: 25 February 2004 19:02 To: ra...@me...; per...@li... Subject: Re: [perl-win32-gui-users] Anyone help? Hi, =20 Same problem for me. It's a problem of not up to date include file.=20 For correct problem, i have tested those 3 methods. [RED =3D remove BLUE =3D Add ] =20 1) Small change in Win32-GUI source but warming messag. =20 edit GUI.h and add this line : #define WIN32_LEAN_AND_MEAN #define _WIN32_IE 0x0501 #define _WIN32_WINNT 0x0400 #define WINVER 0x0501 =20 Now it's work, but you have a warming message. =20 2) Hack your default Windows.h header in include directory =20 #ifndef WINVER #define WINVER 0x0400 0x0501 #else=20 #if defined(_WIN32_WINNT) && (WINVER < 0x0400) && (_WIN32_WINNT > = 0x0400) #error WINVER setting conflicts with _WIN32_WINNT setting #endif #endif =20 #if(WINVER >=3D 0x0500) #pragma message ("") #pragma message ("NOTE: WINVER has been defined as 0x0500 or greater = which enables") #pragma message ("Windows NT 5.0 and Windows 98 features. When these = headers were released,") #pragma message ("Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the = current versions.") #pragma message ("") #pragma message ("For this release when WINVER is defined as 0x0500 or = greater, you can only") #pragma message ("build beta or test applications. To build a retail = application,") #pragma message ("set WINVER to 0x0400 or visit = <http://www.microsoft.com/msdn/sdk> http://www.microsoft.com/msdn/sdk") #pragma message ("to see if retail Windows NT 5.0 or Windows 98 headers = are available.") #pragma message ("") #pragma message ("See the SDK release notes for more information.") #pragma message ("") #endif =20 This force default WINVER and remove warning message. =20 It's probably not very safe if you use VC for other building. =20 3) You need to download and install last microsoft SDK. =20 see: = http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm You need core SDK. It's a huge download. =20 Laurent. I downloaded the updated files and tried to build under Windows 2000 but I am getting the error below. Any help would be appreciated. It would be nicer if the new updated version can be packed and update the version number. I remember also I installed before the binary = version and was unable to build from the source. I have VC6 on the computer. GUI.xs(2031) : warning C4101: 'targ' : unreferenced local variable GUI.xs(2289) : error C2065: 'WINDOWINFO' : undeclared identifier GUI.xs(2289) : error C2146: syntax error : missing ';' before identifier 'pwi' GUI.xs(2289) : error C2065: 'pwi' : undeclared identifier ... NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. Ramy |