download links
After installing these, you need to make the Visual C++ Express able to see the Platform SDK libraries.
go to Tools > Options > Projects and Solutions > VC++ Directories and set the following:
Executable files: C:\Program Files\MS_Platform_SDK\Bin
Include files: C:\Program Files\MS_Platform_SDK\Include
Library files: C:\Program Files\MS_Platform_SDK\Lib
Note: depending on where you installed the platform sdk you may have to use "Microsoft Platform SDK for Windows Server 2003 R2" as "MS_Platform_SDK" above.
Include files: C:\Program Files\MS_Platform_SDK\Include
Library files: C:\Program Files\MS_Platform_SDK\Lib
Note: depending on where you installed the platform sdk you may have to use "Microsoft Platform SDK for Windows Server 2003 R2" as "MS_Platform_SDK" above.
Then, you need to modify some default settings in your projects. Edit the corewin_express.vsprops file in
C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults and add the following to AdditionalDependencies: " user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
You can enable a windowed template in the Visual Studio Express:
Edit the file AppSettings.htm in
C:\Program Files\Microsoft Visual Studio 8\
in subfolder \VC\VCWizards\AppWiz\Generic\Application\html\1033\ and comment out the following 4 lines (approx line 440)
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
Then when go to build an application choose a Win32 Console Application. In the Win32 Application Wizard dialog box, make sure that Windows application is selected as the Application type and the ATL is not selected. (before you edited the AppSettings.htm file, this was disabled. Click the Finish button to generate the project.
This post is pretty much a regurgitation of the following link. So for more information go check it out. I originally had this post for x64 and x86 but decided to split. This one was the x86 so go check out my other x64 post.
source: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
No comments:
Post a Comment