Re: Lost Header Files

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Peter Hall (anonymous_at_discussions.microsoft.com)
Date: 05/22/04


Date: Sat, 22 May 2004 12:26:02 -0700

The first attempt using the WROX example called for std and iostream and they were included. However on the grounds that the program was generic and not particularly specific to the VC++v6 compiler, I started again using just the Visual C++ program to create an application using only facilities within the program. I typed nothing in other than the name of the application.

 So, answering the request for more precise data about the second attempt using
only VC++v6 to set up a simple application:

I opened Visual C++ v6.0
File/New
choice was Simple Win32 Console Application
named it prh3 (the only thing I typed)
choice was: Simple Hello World program
with (according to VC++v6...)
Main prh3.cpp
and
Precompiled Headre stdafx.h and stdafx.cpp

The file view gave the listing as:

// prh3.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int main(int argc, char* argv[])
{
        printf("Hello World!\n");
        return 0;
}

on using the Build tool, the error messages were:

--------------------Configuration: prh3 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\program files\prh3\stdafx.h(15) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
Error executing cl.exe.

prh3.exe - 1 error(s), 0 warning(s)



Relevant Pages

  • Re: unable to connect to internet on remote computer
    ... ping request could not find host www.yahoo.co.uk. ... 'internet explorer could not open the search page' ... Report success / exact text of error messages. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Web Service timeout
    ... I tried out a 2k client box, ... System.Net.WebException: The underlying connection was closed: An unexpected ... I also don't understand why I get differing error messages from XP ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: (repost) problem with 840374
    ... Select the "Contact Microsoft" link and a new web page will load. ... Support Options and Pricing" link for phone number ... If you'd like to submit a support request over the Internet, ... There were no error messages ...
    (microsoft.public.windowsupdate)
  • Re: Back button not working after move to windows 2003 server
    ... With friendly error messages turned off, ... this does not look like a problem with IIS but some other ... either of the network or the web application on the server. ... > 2003 definitely handles that like any other HTTP request. ...
    (microsoft.public.inetserver.iis)
  • Problems browsing web sites
    ... >We are having some problems browsing some web sites. ... get error messages ... >your system administrator. ... Made http request for GET ...
    (microsoft.public.isa)