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. Compile errors in ATL/WTL application

Compile errors in ATL/WTL application

Scheduled Pinned Locked Moved ATL / WTL / STL
c++helpquestionlearning
4 Posts 3 Posters 0 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.
  • D Offline
    D Offline
    damir_tk
    wrote on last edited by
    #1

    In my ATL application I get a huge number of errors when trying to compile it. This is my stdafx.h: #pragma once #ifndef STRICT #define STRICT #endif #define WIN32_LEAN_AND_MEAN #define WINVER 0x0500 #define _WIN32_WINNT 0x0500 #define _WIN32_IE 0x0501 #define _RICHEDIT_VER 0x0100 #define _ATL_ALL_WARNINGS #include <atlbase.h> #include <atlapp.h> extern CAppModule _Module; #include <atlwin.h> #include <atlstr.h> #include <atlcontrols.h> #include "../FileEnc/resource.h" using namespace ATL; Any ideas? I tried changing the WTL 8.0 to WTL 7.1, but it is the same. I also updated the header files and moved the include WTL to the bottom of the list in the include options dialog, but to no avail. This is the error list I get: Error 2 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7269 Error 3 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7282 Error 4 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7298 Error 5 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7305 Error 6 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7324 Error 7 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7425 Error 8 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7432 Error 9 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7439 Error 10 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7446 Error 11 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7459 Error 12 error C2146: syntax error : missing ';' before identifier 'GetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7490 Error 13 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7490 Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7491 Error 16 error C2146: syntax error : missing ';' before identifier 'SetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7496 Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7496 Error 18 error C2061: syntax error : identifier 'EDITWORDBREAKPROCEX' e:\wtl80\include\atlctrls.h 7496 Error 19 error C4430: missing t

    P A 2 Replies Last reply
    0
    • D damir_tk

      In my ATL application I get a huge number of errors when trying to compile it. This is my stdafx.h: #pragma once #ifndef STRICT #define STRICT #endif #define WIN32_LEAN_AND_MEAN #define WINVER 0x0500 #define _WIN32_WINNT 0x0500 #define _WIN32_IE 0x0501 #define _RICHEDIT_VER 0x0100 #define _ATL_ALL_WARNINGS #include <atlbase.h> #include <atlapp.h> extern CAppModule _Module; #include <atlwin.h> #include <atlstr.h> #include <atlcontrols.h> #include "../FileEnc/resource.h" using namespace ATL; Any ideas? I tried changing the WTL 8.0 to WTL 7.1, but it is the same. I also updated the header files and moved the include WTL to the bottom of the list in the include options dialog, but to no avail. This is the error list I get: Error 2 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7269 Error 3 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7282 Error 4 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7298 Error 5 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7305 Error 6 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7324 Error 7 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7425 Error 8 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7432 Error 9 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7439 Error 10 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7446 Error 11 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7459 Error 12 error C2146: syntax error : missing ';' before identifier 'GetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7490 Error 13 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7490 Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7491 Error 16 error C2146: syntax error : missing ';' before identifier 'SetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7496 Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7496 Error 18 error C2061: syntax error : identifier 'EDITWORDBREAKPROCEX' e:\wtl80\include\atlctrls.h 7496 Error 19 error C4430: missing t

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      I doubt, if its due to incorrect include sequnce. Try including Richedit.h before any wtl header.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      D 1 Reply Last reply
      0
      • P prasad_som

        I doubt, if its due to incorrect include sequnce. Try including Richedit.h before any wtl header.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        D Offline
        D Offline
        damir_tk
        wrote on last edited by
        #3

        Tried it, does not work. Thanks.

        1 Reply Last reply
        0
        • D damir_tk

          In my ATL application I get a huge number of errors when trying to compile it. This is my stdafx.h: #pragma once #ifndef STRICT #define STRICT #endif #define WIN32_LEAN_AND_MEAN #define WINVER 0x0500 #define _WIN32_WINNT 0x0500 #define _WIN32_IE 0x0501 #define _RICHEDIT_VER 0x0100 #define _ATL_ALL_WARNINGS #include <atlbase.h> #include <atlapp.h> extern CAppModule _Module; #include <atlwin.h> #include <atlstr.h> #include <atlcontrols.h> #include "../FileEnc/resource.h" using namespace ATL; Any ideas? I tried changing the WTL 8.0 to WTL 7.1, but it is the same. I also updated the header files and moved the include WTL to the bottom of the list in the include options dialog, but to no avail. This is the error list I get: Error 2 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7269 Error 3 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7282 Error 4 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7298 Error 5 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7305 Error 6 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7324 Error 7 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7425 Error 8 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7432 Error 9 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7439 Error 10 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7446 Error 11 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7459 Error 12 error C2146: syntax error : missing ';' before identifier 'GetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7490 Error 13 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7490 Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7491 Error 16 error C2146: syntax error : missing ';' before identifier 'SetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7496 Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7496 Error 18 error C2061: syntax error : identifier 'EDITWORDBREAKPROCEX' e:\wtl80\include\atlctrls.h 7496 Error 19 error C4430: missing t

          A Offline
          A Offline
          Alain Rist
          wrote on last edited by
          #4

          Hi, Most of your problem seems to come from the confusing WTL CString support. Try this: // stdafx.h // your global #define ... #include #include #define _WTL_NO_CSTRING #include extern CAppModule _Module; #include // your other 'namespace ATL{' #include ... // your 'namespace WTL{' #include ... // your other aplication #include ... cheers, AR

          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