badboy518 发表于 2006-2-18 20:27:00

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

<P>ARX只能在VS2002中开发,这是安装文件说明的。但是我能在VS2003中开发,只是加入了VS2002的相关库文件。</P>
<P>今天我安装了VS2005,却用不了。还有,arx 根本不能安装完成。在网上找了好久,找到了这编英文文档。看不明白,请高手翻译一下,我等也好照做。</P>
<H3><A name=VC8ForARX2000>Using VC 8 (Visual Studio 2005) to Build for AutoCAD 2000/2002/2004</A></H3>
<P>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 <A href="http://www.manusoft.com/Resources/ARXTips/Main.stm#VC71ForARX2000" target="_blank" >as described above</A>, then you'll need to start with an updated version of my VC Build Hook utility that supports Visual Studio 2005:</P>
<BLOCKQUOTE>
<P>Download: <A href="http://www.manusoft.com/Resources/ARXTips/Bin/VCBuildHook2Setup.msi" target="_blank" >VCBuildHook2Setup.msi</A> (311k)<BR>Version <B>2.0.2.1</B> uploaded <B>2005-11-05</B> (supports VC 7.1 <EM>and</EM> VC 8*)</P></BLOCKQUOTE>
<BLOCKQUOTE>
<P>* 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 <A href="http://www.manusoft.com/Resources/ARXTips/Main.stm#VC71ForARX2000" target="_blank" >previous section</A>. This way you can uninstall version 2 and reinstall version 1 so that you can continue using it in VC 7.1 as before.</P></BLOCKQUOTE>
<P>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 <A href="http://www.manusoft.com/Resources/ARXTips/Main.stm#VC71ForARX2000" target="_blank" >outlined above</A>, 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.</P>
<BLOCKQUOTE>
<UL>
<LI>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.
<LI>In linker settings, on the 'Manifest File' tab, set 'Generate Manifest' to 'No'. This disables manifest file generation.
<LI>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.
<LI>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.
<LI>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-&gt;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.
<LI>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. </LI></UL></BLOCKQUOTE>
<P>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 '<CODE>$(IntDir)\$(TargetName).pch</CODE>' for all configurations, then go to the 'Command Line' tab and add <CODE>'/YXStdAfx.h</CODE>' 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. </P>
<P>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 <A href="http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment" target="_blank" >the previous sections</A>. If I learn of more settings that need to be changed in VS 2005, I will add them to this list.</P>
<P>在这里 <A href="http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment" target="_blank" >http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment</A> 还有很多相关系统的设置。最好请高手给说明一下。谢谢了。</P>

ahlzl 发表于 2006-2-20 19:48:00

期待!

BigJue 发表于 2006-2-22 17:04:00

<P>原文 <A href="http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment" target="_blank" >http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment</A></P>
<P>部分翻译(<A name=Introduction>Introduction</A>,<A name=MSVCEnvironment>Microsoft Visual C/C++ Environment</A>,<A name=VC7ForARX2000>Using VC 7 (Visual Studio .NET 2002) to Build for AutoCAD 2000/2002</A>),由于本人水平有限,只能翻成这样了。如果有什么地方看不懂,可以在这里讨论。</P>
<P>译文: </P>

BigJue 发表于 2006-2-22 17:06:00

<P>还有三部分:</P>
<P>1,<A name=VC71ForARX2000>Using VC 7.1 (Visual Studio .NET 2003) to Build for AutoCAD 2000/2002/2004</A></P>
<P>2,<A name=VC8ForARX2000>Using VC 8 (Visual Studio 2005) to Build for AutoCAD 2000/2002/2004</A></P>
<P>3,<A name=BrowseARX>Enabling IntelliSense and Class Browsing for ObjectARX Headers</A></P>
<P>有空再慢慢翻,呵呵</P>
页: [1]
查看完整版本: 关于ARX开发环境的相关英文资料,请高手翻译!