locked
Help me Please

    Question

  • So I am new to this and I want to learn c++ for summer So I started yesterday and I am following some tutorials but MVSE 2012 wont let me use

    #include "stdafx.h"

    and I have no clue why........ help me please :( or if you can reference me to a tutorial that is different from others that would be great or even a teacher would be way better.

    Sunday, June 16, 2013 11:13 PM

Answers

  • Perhaps there isnt a header file in the system called that ?

    Here some my program uses:

    #include <math.h>
    //#include <wrl.h>
    //#include "DirectXBase.h"
    
    //#include <string>
    
    
    
    #include "pch.h"
    #include "SimpleTextRenderer.h"
    #include "DirectXBase.h"
    #include <DirectXMath.h>
    
    #include <iostream>
    
    
    // Windows Header Files:
    #include <windows.h>
    
    // C RunTime Header Files:
    #include <stdlib.h>
    #include <malloc.h>
    #include <memory.h>
    #include <wchar.h>
    #include <math.h>
    
    #include <d2d1.h>
    #include <d2d1helper.h>
    #include <dwrite.h>
    #include <wincodec.h>
    //////////////////////////////////
    
    #include "pch.h"
    #include "SimpleTextRenderer.h"
    #include "DirectXBase.h"
    #include <DirectXMath.h>
    
    
    
    
    // Windows Header Files:
    #include <windows.h>
    
    // C RunTime Header Files:
    #include <stdlib.h>
    #include <malloc.h>
    #include <memory.h>
    #include <wchar.h>
    #include <math.h>
    
    #include <d2d1.h>
    #include <d2d1helper.h>
    #include <dwrite.h>
    #include <wincodec.h>


    n.Wright

    Monday, June 17, 2013 12:07 AM
  • Which version of Visual Studio are you using?  

    If you are using Visual Studio Express 2012 for Windows 8, you may not be able to use this header as the environment has been customized for Windows Store Apps.

    I think that you probably should use Visual Studio Express 2012 for Windows Desktop which supports Console programs that are typically used in C++ tutorials.

    Also, the general forum for C++ questions (not related to Windows Store Apps) is here: Visual C++


    Monday, June 17, 2013 2:20 AM
  • And the flip side of jrboddies comment is: What type of app are you trying to write? Are you trying to write a Windows Store app? If so, take a look at the documentation and samples for this forum at Developing apps (C#/C++/VB)

    If you are trying to write a Desktop app then you are in the wrong forum and may be using the wrong version of Visual Studio.

    --Rob

    Tuesday, June 18, 2013 10:57 PM
    Owner

All replies

  • Perhaps there isnt a header file in the system called that ?

    Here some my program uses:

    #include <math.h>
    //#include <wrl.h>
    //#include "DirectXBase.h"
    
    //#include <string>
    
    
    
    #include "pch.h"
    #include "SimpleTextRenderer.h"
    #include "DirectXBase.h"
    #include <DirectXMath.h>
    
    #include <iostream>
    
    
    // Windows Header Files:
    #include <windows.h>
    
    // C RunTime Header Files:
    #include <stdlib.h>
    #include <malloc.h>
    #include <memory.h>
    #include <wchar.h>
    #include <math.h>
    
    #include <d2d1.h>
    #include <d2d1helper.h>
    #include <dwrite.h>
    #include <wincodec.h>
    //////////////////////////////////
    
    #include "pch.h"
    #include "SimpleTextRenderer.h"
    #include "DirectXBase.h"
    #include <DirectXMath.h>
    
    
    
    
    // Windows Header Files:
    #include <windows.h>
    
    // C RunTime Header Files:
    #include <stdlib.h>
    #include <malloc.h>
    #include <memory.h>
    #include <wchar.h>
    #include <math.h>
    
    #include <d2d1.h>
    #include <d2d1helper.h>
    #include <dwrite.h>
    #include <wincodec.h>


    n.Wright

    Monday, June 17, 2013 12:07 AM
  • Which version of Visual Studio are you using?  

    If you are using Visual Studio Express 2012 for Windows 8, you may not be able to use this header as the environment has been customized for Windows Store Apps.

    I think that you probably should use Visual Studio Express 2012 for Windows Desktop which supports Console programs that are typically used in C++ tutorials.

    Also, the general forum for C++ questions (not related to Windows Store Apps) is here: Visual C++


    Monday, June 17, 2013 2:20 AM
  • And the flip side of jrboddies comment is: What type of app are you trying to write? Are you trying to write a Windows Store app? If so, take a look at the documentation and samples for this forum at Developing apps (C#/C++/VB)

    If you are trying to write a Desktop app then you are in the wrong forum and may be using the wrong version of Visual Studio.

    --Rob

    Tuesday, June 18, 2013 10:57 PM
    Owner