Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. WTL 7 MTPad Example Errors

WTL 7 MTPad Example Errors

Scheduled Pinned Locked Moved ATL / WTL / STL
c++combeta-testinghelptutorial
4 Posts 4 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ancient Dragon
    wrote on last edited by
    #1

    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 ****************************************************

    P E 2 Replies Last reply
    0
    • A Ancient Dragon

      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 ****************************************************

      P Offline
      P Offline
      Paul M Watt
      wrote on last edited by
      #2

      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!

      S 1 Reply Last reply
      0
      • P Paul M Watt

        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!

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        I've just had a look in the SDK on my PC (May 2002) and all those symbols are defined (well, PRINTDLGEX, not PRINTERDGLEX). 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'

        1 Reply Last reply
        0
        • A Ancient Dragon

          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 ****************************************************

          E Offline
          E Offline
          Ed Gadziemski
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups