明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1822|回复: 3

关于ARX开发环境的相关英文资料,请高手翻译!

[复制链接]
发表于 2006-2-18 20:27:00 | 显示全部楼层 |阅读模式

ARX只能在VS2002中开发,这是安装文件说明的。但是我能在VS2003中开发,只是加入了VS2002的相关库文件。

今天我安装了VS2005,却用不了。还有,arx 根本不能安装完成。在网上找了好久,找到了这编英文文档。看不明白,请高手翻译一下,我等也好照做。

Using VC 8 (Visual Studio 2005) to Build for AutoCAD 2000/2002/2004

Now that Microsoft has released Visual Studio 2005, many of us want to use the new IDE for building ObjectARX applications. Assuming you've already set up your projects as described above, then you'll need to start with an updated version of my VC Build Hook utility that supports Visual Studio 2005:

Download: VCBuildHook2Setup.msi (311k)
Version 2.0.2.1 uploaded 2005-11-05 (supports VC 7.1 and VC 8*)

* The updated VC Build Hook utility supports both VC 7.1 and VC 8, so you should remove any previous version before installing version 2. In case you have problems with the new version, I am leaving the link to version 1 in the previous section. This way you can uninstall version 2 and reinstall version 1 so that you can continue using it in VC 7.1 as before.

Once the updated utility is installed, it's just a matter of updating solutions and projects to the new format by opening them in Visual Studio 2005, then making some changes in the project settings. I'm assuming that correct headers and libraries are already included in your project settings as outlined above, so that all we need to do is make sure the commands being sent to the VC 7 build tools are satisfactory. I've only tested a few projects, so this list is not necessarily complete, but I only needed to make the following changes to a freshly converted project to build it successfully.

  • Disable the Manifest Tool. This is easy to do, but not obvious or well documented. Right-click on a project and select 'Tool Build Order...', then select 'All Configurations' in the configuration dropdown and dismiss the warning dialog, then uncheck the box beside 'Manifest Tool'. Using the IDE, you have to do this one project at a time.
  • In linker settings, on the 'Manifest File' tab, set 'Generate Manifest' to 'No'. This disables manifest file generation.
  • Disable error reporting. In C/C++ settings, on the 'Advanced' tab, set 'Error Reporting' to 'Default'. Do the same in linker settings, on the 'Advanced' tab.
  • Don't use Unicode response files. Change this in C/C++ settings on the 'General' tab by setting 'Use UNICODE Response Files' to 'No'. Do the same in linker settings, also on the 'General' tab. The VC Build Hook utility will automatically convert Unicode response files to ANSI files if they are being sent to a VC 7 build tool, so this step is not strictly required, however the build will be slightly less efficient if the files need to be converted.
  • Disable parallel builds! The VC Build Hook utility does not work correctly if two simultaneous builds are using different settings, so you should disable this new feature in Visual Studio 2005 global options. To do this, go to Tools->Options, open 'Projects and Solutions', select the 'Build and Run' tab, and change the 'maximum number of parallel project builds' to 1. In my experience, Visual Studio is more stable when parallel builds are disabled, so there is a benefit to disabling this feature that is unrelated to VC Build Hook.
  • If your original project had set either of the two VC Build Hook extended solution properties to a setting other than 'Default', they need to be set again in the converted project. This is because of a change in VC 8 that causes it to no longer accept extended solution property names containing a period character. Project settings are carried forward correctly; only solution properties are affected.

If your project uses precompiled headers, there is one additional issue to deal with. Visual Studio 2005 no longer supports the "Automatically Generate" (/YX) precompiled header option. This is not a problem when using the new VC 8 build tools, but when using the VC 7 build tools, it can make the build process unbearably slow. Luckily it's not difficult to re-enable automatic use of precompiled headers when building with VC 7 build tools. To re-enable this feature in a VC 8 project that is using the VC 7 build tools, you need to edit the 'Precompiled Header' tab of the C/C++ settings. First, make sure precompiled headers are disabled ('Create/Use Precompiled Header' should be set to 'Not Using Precompiled Headers'), then set the 'Precompiled Header File' to '$(IntDir)\$(TargetName).pch' for all configurations, then go to the 'Command Line' tab and add '/YXStdAfx.h' to the 'Additional options' field at the bottom. Voila! Precompiled headers should now work just as they did when building with the Visual Studio .NET 2003 IDE.

That's all I had to do with the converted projects I've tested so far, but I need to stress again that these steps only work after you have implemented the practices I've discussed in the previous sections. If I learn of more settings that need to be changed in VS 2005, I will add them to this list.

在这里 http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment 还有很多相关系统的设置。最好请高手给说明一下。谢谢了。

发表于 2006-2-20 19:48:00 | 显示全部楼层
期待!
发表于 2006-2-22 17:04:00 | 显示全部楼层

原文 http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment

部分翻译(IntroductionMicrosoft Visual C/C++ EnvironmentUsing VC 7 (Visual Studio .NET 2002) to Build for AutoCAD 2000/2002),由于本人水平有限,只能翻成这样了。如果有什么地方看不懂,可以在这里讨论。

译文:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2006-2-22 17:06:00 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-26 01:24 , Processed in 0.180436 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表