2024年4月6日发(作者:)
破解Visual C++ 2005 express工程创建限制
如果拒绝用盗版Visual Studio,就无法创建win32程序了吗,当然不是,参考下面文章
出自:
/express/2005/platformsdk/
By Brian Johnson,
微软公司
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.
第一步: I安装 Visual C++ 速成版.
如果你还没有这样做, 安装 Visual C++ 速成版.
第二步: 安装 Microsoft Platform SDK.
从微软下载中心页面安Platform. 按照指示,并为x86平台安装SDK
.
第三步:更新Visual C + +中的目录项目和解决方案区选择对话框。
选择适当的分段添加路径:
:
* Executable files: C:Program FilesMicrosoft Platform SDK for
Windows Server 2003 R2Bin
* Include files: C:Program FilesMicrosoft Platform SDK for Windows
Server 2003 R2Include
* Library files: C:Program FilesMicrosoft Platform SDK for Windows
Server 2003 R2Lib
Note: Alternatively, you can update the Visual C++ Directories by
modifying the file located in the
vcvcpackages subdirectory of the Visual C++ Express install location.
Please make sure that you also delete the file "" located
in the "%USERPROFILE%Local SettingsApplication
DataMicrosoftVCExpress8.0" if it exists before restarting Visual C++
Express Edition.
第四步:更新corewin_s文件。
有一步是必须的,如果你需要Visual C + +速成版可以编译成win32
执行程序。你需要编辑corewin_s文件(在C:
Program Files Microsoft v isuals tudio 8 VC VCProjectDefaults
下找)
改变对应,上面写着:
AdditionalDependencies=""
to
AdditionalDependencies="
"
第五步:产生,并建立一个Win32应用测试你的路径。
在Visual C + +的速成版,在Windows应用程序WIN32向导是不可
用的。使用这种类型,你需要对文件进行修改位于ProgramFiles文
件夹下的 Microsoft v isuals tudio 8 VC VCWizards AppWiz
通用应用 html 合约”下的文件。
用文本编辑器管道把第441 – 444行加上//,注释他们(如下):
// WIN_ed = true;
// WIN_APP_ed = true;
// DLL_ed = true;
// DLL_APP_ed = true;
保存并且关闭文件和打开Visual C + +表达。
在“文件”菜单上,点击新项目。在新项目中,对话框,扩大Visual C + +
节点的产品类型树中,然后点击Win32。点击Win32控制台应用程
序模板,然后给你的项目名称,点击“确认”按钮。我的向导对话框,应
用确保窗口申请选为应用类型和ATL是未被选中。请单击“完成”
按钮来产生项目。
作为最后一步,测试你的项目,由点按了开始按钮在IDE或按下F5。
你的Win32申请应该建立及运行。


发布评论