Note that there are some explanatory texts on larger screens.

plurals
  1. POWhen creating a new VC++ console app error: cannot find source file stdio.h, tchar.h
    primarykey
    data
    text
    <p>I have just begun teaching myself VC++ using <em>Ivor Horton's Beginning Visual C++ 2010</em> and Visual Studio Professional 2010 . However, when I create a new VC++ console application through File -> New Project -> Win32 Console Application to create the default shell for a console application, I receive the following errors regarding the inclusion of default libraries in my stdafx.h file:</p> <pre><code>error C1083: Cannot open include file: 'stdio.h': No such file or directory error: Cannot open include file:'tchar.h': No such file or directory </code></pre> <p>My stdfx.h file is as follows:</p> <pre><code>#pragma once #include "targetver.h" #include &lt;stdio.h&gt; #include &lt;tchar.h&gt; </code></pre> <p>I can see that the files targeted by the include statements in stdafx.h are not pulled into the Header Files directory of my app, but I checked and I have VC++ 2010 x86 and VC++ x64 installed and assumed those files would be included with the install as the references are made with default generation of a new VC++ console application. Should I have to manually place these in the Header Files directory of each project? Shouldn't these be automatically pulled in?</p> <p>UPDATE: I looked in <code>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include</code> and I only see ammintrin.h, srv.h, wmiatlprov.h. Does this mean my Visual Studio install was potentially problematic? Can I just download the needed header files from somewhere and place them in this directory to correct the issue?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload