[READ THIS] i need help; please!!!!!

Discussion in 'C' started by m_t_h, Jul 2, 2010.

  1. m_t_h

    m_t_h New Member

    Joined:
    Jul 2, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    hi everybody can anywho tell me what i did wrong:

    ook my problem. you see when you create new project bla bla bla and then you have some sheet in header files and source files. i deleted all and created new there was somethink called: stdafx.h . i delted that too now, when i want to debug i get 1 error. called: did you forget to add "#inc... "STDAFX.h" to your source! but i delted that! wtf?

    How to fix that? somebody told me that:
    check your precompiled settings

    but where to do that?????
    THANKS!!! I REALLY need your help!:cryin:
     
  2. m_t_h

    m_t_h New Member

    Joined:
    Jul 2, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    ow yea, srry for duble post, i was creating .dll
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Visual Studio uses something called precompiled headers. It speeds up compiling time. To use it you have to (a) ensure using precompiled headers is switched on and (b) include stdafx.h. If you don't want to use precompiled headers then (a) switch precompiled headers off *AND* (b) delete the #include.

    To switch precompiled headers off go to the Project menu, select Properties, in the left pane expand Configuration Properties then C/C++, then select Precompiled Headers. In the right pane change Create/Use Precompiled Headers to Not Using Precompiled Headers.

    But by the sounds of it you don't know enough to know that you don't need it. Leave it on and stop deleting the include stdafx.h.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice