Building Win32 Applications Using Visual C++ 2005 Express
A number of people have asked about building Win32 applications using the Visual
C++ 2005 Express beta. I'll take you through the basic steps here and I'll try to get
a more detailed page posted early this week.
Building Win32 applications with express is a three step process:
- Install the Platform SDK
- Set the paths for the bin, include, and lib folders.
- Add a few options to the linker dependencies in the
corewin_express.vsprops file.
To install the Platform SDK, visit SDK Update and install the core components of the Platform SDK. Once that's accomplished, open the Visual C++ 2005 Express Edition IDE and open the Options dialog box. Navigate to Projects and Solutions and then Visual C++ Directories and add the following to the top of each the appropriate sections:
Executable Files: C:\Program Files\Microsoft SDK\bin
Include Files: C:\Program Files\Microsoft SDK\include
Library Files: C:\Program Files\Microsoft SDK\lib
Once all that is done, you just need to take one more step to make the Win32
template work in express. You need to edit the corewin_express.vsprops file
(found in C:\Program Files\Microsoft Visual Studio 8\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
odbc32.lib odbccp32.lib"
At this point you should be able to generate a Win32 application from the New
Project dialog box. If you have trouble with this, drop me a note at
brianjo@microsoft.com and I'll see if
I can make that clearer. After I test things out a bit, I'll add some
instructions for using the DirectX SDK with express.
Comments
- Anonymous
August 09, 2004
None - Anonymous
August 10, 2004
NICE SITE - Anonymous
August 11, 2004
How about a resource editor for dialogs, string tables, accelerator tables, icons, etc?
Would this enable it? - Anonymous
August 11, 2004
i was asked for odbc32.lib when trying to build. and another odbc file i removed them from the list and the test template would build. - Anonymous
August 14, 2004
The Platform SDK isn't available for download because the page requires msxml3.dll SP2. The only version available is SP4. - Anonymous
August 15, 2004
How can we build a MFC project with Express Edition?
Is it possible?