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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. a problem!!!!

a problem!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++csharpvisual-studiodebugging
10 Posts 5 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.
  • S Offline
    S Offline
    smartymanav
    wrote on last edited by
    #1

    when i compile my project i get this error!!! --------------------Configuration: Ado1 - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Error executing cl.exe. Ado1.exe - 1 error(s), 0 warning(s) it is showing that error is in stdafx.h.. wat to do now... i have only added one line to stdafx.h which is:: #include "comdef.h" there is no #include in any of my project file... please help and thanks

    C T K PJ ArendsP 4 Replies Last reply
    0
    • S smartymanav

      when i compile my project i get this error!!! --------------------Configuration: Ado1 - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Error executing cl.exe. Ado1.exe - 1 error(s), 0 warning(s) it is showing that error is in stdafx.h.. wat to do now... i have only added one line to stdafx.h which is:: #include "comdef.h" there is no #include in any of my project file... please help and thanks

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Use the < tags just above the emoticons because we cannot see which header file you included.

      T 1 Reply Last reply
      0
      • S smartymanav

        when i compile my project i get this error!!! --------------------Configuration: Ado1 - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Error executing cl.exe. Ado1.exe - 1 error(s), 0 warning(s) it is showing that error is in stdafx.h.. wat to do now... i have only added one line to stdafx.h which is:: #include "comdef.h" there is no #include in any of my project file... please help and thanks

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        smartymanav wrote: have only added one line to stdafx.h which is:: #include I am unable to see which file you have included in your project, please modify your comment with Do not treat <'s as HTML tags option checked

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta

        S 1 Reply Last reply
        0
        • T ThatsAlok

          smartymanav wrote: have only added one line to stdafx.h which is:: #include I am unable to see which file you have included in your project, please modify your comment with Do not treat <'s as HTML tags option checked

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta

          S Offline
          S Offline
          smartymanav
          wrote on last edited by
          #4

          now take a look

          1 Reply Last reply
          0
          • C Cedric Moonen

            Use the < tags just above the emoticons because we cannot see which header file you included.

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            cedric moonen wrote: < tags just above the emoticons because we cannot see which header file you included. :omg: We Posted our comment at same Time :)

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta

            C 1 Reply Last reply
            0
            • S smartymanav

              when i compile my project i get this error!!! --------------------Configuration: Ado1 - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Error executing cl.exe. Ado1.exe - 1 error(s), 0 warning(s) it is showing that error is in stdafx.h.. wat to do now... i have only added one line to stdafx.h which is:: #include "comdef.h" there is no #include in any of my project file... please help and thanks

              K Offline
              K Offline
              khan
              wrote on last edited by
              #6

              Try including "comdef.h" after all other includes. this is this.

              S 1 Reply Last reply
              0
              • T ThatsAlok

                cedric moonen wrote: < tags just above the emoticons because we cannot see which header file you included. :omg: We Posted our comment at same Time :)

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta

                C Offline
                C Offline
                Cedric Moonen
                wrote on last edited by
                #7

                Wow, that is synchronisation isn't it ? :)

                1 Reply Last reply
                0
                • S smartymanav

                  when i compile my project i get this error!!! --------------------Configuration: Ado1 - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Error executing cl.exe. Ado1.exe - 1 error(s), 0 warning(s) it is showing that error is in stdafx.h.. wat to do now... i have only added one line to stdafx.h which is:: #include "comdef.h" there is no #include in any of my project file... please help and thanks

                  PJ ArendsP Offline
                  PJ ArendsP Offline
                  PJ Arends
                  wrote on last edited by
                  #8

                  Add your include files at the end of stdafx.h, just before the '#endif' line at the bottom. If you add your headers at the top of the file you will get this error.


                  sigless

                  Within you lies the power for good; Use it!

                  S 1 Reply Last reply
                  0
                  • K khan

                    Try including "comdef.h" after all other includes. this is this.

                    S Offline
                    S Offline
                    smartymanav
                    wrote on last edited by
                    #9

                    thanks a lot!!!!!

                    1 Reply Last reply
                    0
                    • PJ ArendsP PJ Arends

                      Add your include files at the end of stdafx.h, just before the '#endif' line at the bottom. If you add your headers at the top of the file you will get this error.


                      sigless

                      S Offline
                      S Offline
                      smartymanav
                      wrote on last edited by
                      #10

                      thanks a lot!!!

                      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