Results 1 to 5 of 5

Thread: Problem Compiling Code In Microsoft Visual C++

  1. #1
    Member
    Join Date
    May 07
    Posts
    48

    Problem Compiling Code In Microsoft Visual C++

    Hey there everyone, i will try to be as simple as possible to prevent confusion.

    I have a project named MyProject ok..
    I have a folder with MyProject and includes.h
    I call the includes.h file located in the same folder as MyProject.
    When compiling to .exe i get this error:

    C:\Documents and Settings\*****\Desktop\MyProject\includes.h(18) : fatal error C1083: Cannot open include file: 'windns.h': No such file or directory

    I dont get the error considering includes.h is in that directory but Microsoft Visual C++ just cannot find it.. Why is this? Help is more than appreciated... I think i need the windns.h file which i cannot find, does anybody have it?
    Thanks
    Last edited by Revivalry; May 5th, 2008 at 01:09 PM.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 03
    Location
    Ashby, Leicestershire.
    Posts
    1,140

    Re: Problem Compiling Code In Microsoft Visual C++

    what version of C++ are you using? not 2005 express by any chance?
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3
    Member
    Join Date
    May 07
    Posts
    48

    Re: Problem Compiling Code In Microsoft Visual C++

    im pretty sure it's 6.0

    Was thinking of getting 2008.. does that include windns.h?

  4. #4
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 03
    Location
    Ashby, Leicestershire.
    Posts
    1,140

    Re: Problem Compiling Code In Microsoft Visual C++

    it's in VC6 & VC2003, i found it in both them places on my drive. maybe it's worth checking on the disk for your version of VC if it's in there, or trying a software update on it, to see if it gets included in to your includes folder.
    here's a link for Service Pack 5 & here's a link for Service Pack 6 , those are for Visual Studio 6.
    maybe worth a try doing the upgrade to see if it adds any missing components.
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  5. #5
    Member
    Join Date
    May 07
    Posts
    48

    Re: Problem Compiling Code In Microsoft Visual C++

    Ok thanks very much ill get em now and c wt i can get

    But don't i need the MSDN library?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •