Thread: a weird header file

  1. #1
    hacker in training AdamLAN's Avatar
    Join Date
    Sep 2004

    Question a weird header file

    I have MSVC++.NET, and i keep getting compiler errors
    I'm following some code instructions from a book, and I'm double checking my typing, but I still get compiler errors.

    For Example:
    1)The compiler cannot recognize "#using <mscorlib.dll>"
    2)The compiler cannot recognize "#using "stdafx.h"

    What is "stdafx.h" and what can I do to fix these problems?

  2. #2
    Registered User Sake's Avatar
    Join Date
    Jan 2005
    stdafx.h is a precompiled header that will be automatically included unless you create an empty project. mscorlib.dll is a header for managed C++ IIRC, but creating an empty project will solve both problems.

    It looks like you made a manged .NET application and then deleted the automatic code that was generated for you. Now the compiler is looking for those headers in your code and can't find them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Replies: 6
    Last Post: 04-02-2002, 05:46 AM