转载-让ObjectARX向导跟Visual Studio Express Editor合作

本文介绍如何在 Visual C++ Express 版中安装并使用 ObjectARX 向导,通过修改注册表和复制文件使 ObjectARX 的部分功能得以实现。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

如果你在用VS Express Editor,安装了ObjectARX向导后,新建一个C++工程但是发现没有ObjectARX的工程模版,无法使用ObjectARX向导的功能(创建工程就是其中一种功能)。

Kean有一篇博客提供了解决办法,下面是原文:

Getting the ObjectARX Wizard to work with Visual Studio Express editions

This topic was suggested by one of our ADN members - Paul Richardson, from CAD System Engineering - and answered by Cyrille Fauvel, from DevTech EMEA. So all I really had to do was copy/paste and some minor editing... now that's my kind of blogging. :-)

The ObjectARX Wizard's installer targets the Microsoft Visual Studio 2005 platform rather than the Microsoft Visual C++/C#/VB.NET Express Editions. The main reasons for this are the limitations of the Express Editions' IDE - particularly due to its lack of support for AddIns. The ObjectARX Wizard is actually made up of a number of components:

  • AppWizards - these are "project templates" with an HTML interface that allows basic set-up of projects
  • Class Wizard - another HTML interface that allows creation and modification of classes, etc.
  • AddIn - this is a more complex application (not defined in HTML), allowing addition of commands and including functionality such as the Class Explorer

While the Express Editions support applications based on HTML (e.g. the AppWizards and the Class Wizard), they do not support AddIns. Which means only part of the functionality of the ObjectARX Wizard can be made to work.

Having said that, the below procedure will allow you to get this subset of the overall functionality working for Visual C++ Express (and it should be comparable to get it working for C#/VB.NET, but for now this approach has only been verified for Visual C++ Express):

1. First we need to fool the ObjectARX Wizards' installer into thinking Visual Studio is installed.

Go to the Registry and create the following key:

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VisualStudio/8.0/Setup/VS

Add a string value: name= 'ProductDir', value = where we want to install the ObjectARX Wizards files to. It's suggested to make this 'C:/Program Files/Microsoft Visual Studio 8/' - the below procedure assumes that. Note: do not forget the trailing '/'.

This registry change will allow you to install the ObjectARX Wizards.

2. The installer will create some new files in the above location, which need to be copied to your Express installation.

Go into 'C:/Program Files/Microsoft Visual Studio 8/VC/vcprojects' and copy the ObjectARX directory into 'C:/Program Files/Microsoft Visual Studio 8/VC/Express/vcprojects'.
Copy the 'C:/Program Files/Microsoft Visual Studio 8/VC/vcprojects/ArxAppWiz.*' files into 'C:/Program Files/Microsoft Visual Studio 8/VC/Express/vcprojects'.
Finally copy the C:/Program Files/Microsoft Visual Studio 8/VC/VCAddClass/ObjectARX' directory into 'C:/Program Files/Microsoft Visual Studio 8/VC/Express/VCAddClass'.

After these steps all the templates-based Wizards will be available in the Visual C++ Express Edition.

转载自:http://through-the-interface.typepad.com/through_the_interface/2006/07/getting_the_obj.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值