用VC2005Express开发Windows应用程序
来源:互联网 发布:python 柱状图 编辑:程序博客网 时间:2024/06/04 18:10
1. vc 2005 express下载
http://msdn.microsoft.com/vstudio/express/visualc/download/
在线安装包,所依赖的组件可以在线安装:http://download.microsoft.com/download/E/B/B/EBB39CA3-C78B-49CD-B1BA-3CB80A8A5B09/vcsetup.exe
离线安装的完整安装iso文件,包括所有所需组件:http://download.microsoft.com/download/A/9/1/A91D6B2B-A798-47DF-9C7E-A97854B7DD18/VC.iso
2. SDK下载
http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB
下载页面:http://www.microsoft.com/downloads/details.aspx?familyid=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en
也可以直接下载完整的光盘镜像文件:http://download.microsoft.com/download/9/7/a/97a5ac16-69ae-4672-b93e-40d66d77b278/5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img
3. 仔细阅读下文进行配置
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
里面详细说明了如何用vc2005 express版本结合sdk开发Windows应用程序的注意事项。
没什么好说的,先看清文档是一个开发者应有的基本素质,看完配置好,就可以开工了。
下面附上内容:
Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK
By Brian Johnson,
Microsoft Corporation
You can use Visual C++ Express to build powerful .NET Framework applications immediately after installation. In order to use Visual C++ Express to build Win32 applications, you'll need to take just a few more steps. I'll list the steps necessary for building Win32 applications using Visual C++ Express.
Step 1: Install Visual C++ Express.
If you haven't done so already, install Visual C++ Express.
Step 2: Install the Microsoft Platform SDK.
Install the Platform SDK over the Web from the Download Center. Follow the instructions and install the SDK for the x86 platform.
Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
Add the paths to the appropriate subsection:
Executable files: C:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Bin
Include files: C:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Include
Library files: C:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Lib
Note: Alternatively, you can update the Visual C++ Directories by modifying the VCProjectEngine.dll.express.config file located in the /vc/vcpackages subdirectory of the Visual C++ Express install location. Please make sure that you also delete the file "vccomponents.dat" located in the "%USERPROFILE%/Local Settings/Application Data/Microsoft/VCExpress/8.0" if it exists before restarting Visual C++ Express Edition.
Step 4: Update the corewin_express.vsprops file.
One more step is needed to make the Win32 template work in Visual C++ 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"
Step 5: Generate and build a Win32 application to test your paths.
In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application Wizard. To enable that type, you need to edit the file AppSettings.htm file located in the folder “%ProgramFiles%/Microsoft Visual Studio 8/VC/VCWizards/AppWiz/Generic/Application/html/1033/".
In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
Save and close the file and open Visual C++ Express.
From the File menu, click New Project. In the New Project dialog box, expand the Visual C++ node in the Product Types tree and then click Win32. Click on the Win32 Console Application template and then give your project a name and click OK. In the Win32 Application Wizard dialog box, make sure that Windows application is selected as the Application type and the ATL is not selected. Click the Finish button to generate the project.
As a final step, test your project by clicking the Start button in the IDE or by pressing F5. Your Win32 application should build and run.
- 用VC2005Express开发Windows应用程序
- 用C#开发第一个WINDOWS应用程序
- 用C#开发第一个WINDOWS应用程序
- 用C#开发第一个WINDOWS应用程序
- 用HTML开发Windows桌面应用程序1
- 用HTML开发Windows桌面应用程序2
- 用HTML开发Windows桌面应用程序3
- 用HTML开发Windows桌面应用程序
- Windows应用程序开发1
- python开发windows应用程序
- 开发 Windows Mobile 应用程序: FAQ
- 开发 Windows Mobile 应用程序: FAQ
- 开发 Windows Mobile 应用程序: FAQ
- 浅谈用Visual C#开发基于OpenCV的Windows应用程序
- 初试用VS开发终端上的Windows应用程序
- Windows下用Eric4开发PySide应用程序的环境配置
- windows应用程序开发笔记一:windows应用程序介绍
- 子书:Windows CE 应用程序开发(英文)
- 侠客心
- TelephoneManage开始了
- vc 2005 express使用
- delphi 控制 excel,创建报表
- 生活流水-20061211
- 用VC2005Express开发Windows应用程序
- 谁说的
- 影響一生的忠告
- 实战篇:设计自己的Annotation
- Apache的Mod_rewrite使用详解
- 初识java
- 明明白白说说VPN
- EXPLORER.EXE病毒的清除
- 爱情向左,我向右~~~