-->
julis

How To Installing the Platform SDK for use with Visual C++ Express Edition

When using Visual C++ Express Edition to compile and build win32 application it will get a error like:
'fatal error C1083: Cannot open include file: 'windows.h': No such file or directory'

To Solve it you must install Microsoft Platform SDK.

There is some steps to setting up visual c++ Express edition for use Platform SDK:

  • From the Tools menu in Visual Studio, select Options. The Options dialog box appears.From the Options dialog box, expand the Projects and Solutions node and select VC++ Directories. In that section, add the following paths to the appropriate subsection:

    • Executable files: C:\Program Files\Microsoft SDK\Bin

    • Include files: C:\Program Files\Microsoft SDK\include

    • Library files: C:\Program Files\Microsoft SDK\lib



  • Update the corewin_express.vsprops file (found in %VSINSTALLDIR%\VC\VCProjectDefaults) and change the string that reads:AdditionalDependencies="kernel32.lib"to:

    AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"

  • Update the default.js file (found in %VSINSTALLDIR%\VC\VCWizards\AppWiz\Generic\Application\scripts\1033) and change the two lines that read:LinkTool.AdditionalDependencies = "kernel32.lib $(NoInherit)";

    to:

    // LinkTool.AdditionalDependencies = "kernel32.lib $(NoInherit)";

  • These is optional, in my case there is few more settings, in properties of projects, in C/C++ section, Additional Include Diretories field, fill with "C:\Program Files\Microsoft Platform SDK\Include" (if platform sdk is installed in default location)

  • Optional, check in Linker section, field Additional Dependencies must re-check, in my case there are few libs file that must be added here, like user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib

julis
julis
Load comments