WTL 7 MTPad Example Errors
-
I downloaded the WTL 7 from the link provided in a previous thread. When I tried to compile the MTPad example program using VC6 on XP computer I get 59 errors. There is a message at the beginning that reads: **************************************************** Compiling... stdatl.cpp NOTE: WINVER has been defined as 0x0500 or greater which enables Windows NT 5.0 and Windows 98 features. When these headers were released, Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions. For this release when WINVER is defined as 0x0500 or greater, you can only build beta or test applications. To build a retail application, set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk to see if retail Windows NT 5.0 or Windows 98 headers are available. See the SDK release notes for more information. Compiling... **************************************************** Then it produces lots of errors. I'll only show the first one. **************************************************** mtpad.cpp c:\wtl70\include\atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm' c:\wtl70\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase' being compiled c:\wtl70\include\atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers ****************************************************
-
I downloaded the WTL 7 from the link provided in a previous thread. When I tried to compile the MTPad example program using VC6 on XP computer I get 59 errors. There is a message at the beginning that reads: **************************************************** Compiling... stdatl.cpp NOTE: WINVER has been defined as 0x0500 or greater which enables Windows NT 5.0 and Windows 98 features. When these headers were released, Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions. For this release when WINVER is defined as 0x0500 or greater, you can only build beta or test applications. To build a retail application, set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk to see if retail Windows NT 5.0 or Windows 98 headers are available. See the SDK release notes for more information. Compiling... **************************************************** Then it produces lots of errors. I'll only show the first one. **************************************************** mtpad.cpp c:\wtl70\include\atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm' c:\wtl70\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase' being compiled c:\wtl70\include\atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers ****************************************************
I believe that you will need to load the latest version of the windows SDK. First off, the note about WINVER 5.0 means that the program enabled all of the features only available in Windows 2000 and above. Second, I get the same basic set of errors, I only get about 14 errors though. LPNMREBARCHEVRON is not defined in any of the header files that I have as well as IPrintDialogCallback and PRINTERDLGEX, but I believe they will be found in the latest header files in the SDK. Good luck!
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life! -
I believe that you will need to load the latest version of the windows SDK. First off, the note about WINVER 5.0 means that the program enabled all of the features only available in Windows 2000 and above. Second, I get the same basic set of errors, I only get about 14 errors though. LPNMREBARCHEVRON is not defined in any of the header files that I have as well as IPrintDialogCallback and PRINTERDLGEX, but I believe they will be found in the latest header files in the SDK. Good luck!
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!I've just had a look in the SDK on my PC (May 2002) and all those symbols are defined (well,
PRINTDLGEX
, notPRINTERDGLEX
). It's a big download, but it's worth it in the long run. Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p' -
I downloaded the WTL 7 from the link provided in a previous thread. When I tried to compile the MTPad example program using VC6 on XP computer I get 59 errors. There is a message at the beginning that reads: **************************************************** Compiling... stdatl.cpp NOTE: WINVER has been defined as 0x0500 or greater which enables Windows NT 5.0 and Windows 98 features. When these headers were released, Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions. For this release when WINVER is defined as 0x0500 or greater, you can only build beta or test applications. To build a retail application, set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk to see if retail Windows NT 5.0 or Windows 98 headers are available. See the SDK release notes for more information. Compiling... **************************************************** Then it produces lots of errors. I'll only show the first one. **************************************************** mtpad.cpp c:\wtl70\include\atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm' c:\wtl70\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase' being compiled c:\wtl70\include\atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers ****************************************************
If you don't have the latest SDK, change the WINVER define in stdafx.h to 0x0400 and that will eliminate the errors. However, you won't be able to use the IE-style chevron and a few other new toys.