CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: [RESOLVED] [Error] Cannot open include file: 'windows.h'

  1. #1
    Join Date
    Apr 2007
    Posts
    11

    [RESOLVED] [Error] Cannot open include file: 'windows.h'

    Hello people,

    I encountered a problem in compiling after following the instructions presented at [link], since I was trying to include MFC in my MSVC++ Express Edition. Will someone, kindly, help me to fix the problem

    ------ Build started: Project: ProjectName, Configuration: Debug Win32 ------
    Compiling...
    stdafx.cpp
    c:\documents and settings\em\desktop\em\042407\modelviewer1\projectname\projectname\stdafx.h(28) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    Build log was saved at "file://c:\Documents and Settings\Em\Desktop\Em\042407\ModelViewer1\ProjectName\ProjectName\Debug\BuildLog.htm"
    ProjectName - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    I am thinking if this error has something to do with Step #5 from [link]. Please, help.. thanks

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: [RESOLVED] [Error] Cannot open include file: 'windows.h'

    I haven't used the express edition, but that error sounds like you skipped Step #3. You need to setup your INCLUDE path to add the platform SDK.

    Viggy

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)