Outside The Box

Random thoughts about AutoCAD, ObjectARX, and the meaning of life.
All Original Content Copyright 2006 - 2008 Owen Wengerd, All Rights Reserved

The new Visual Studio 2008 has been released, and to celebrate, I've updated VC Build Hook. The updated utility allows you to use the new IDE while still building with older versions of the build tools.

Why is this necessary? If you build your AutoCAD 2007/2008 ObjectARX application with the Visual C/C++ 9.0 tools, AutoCAD will display a warning message about an incompatible module when you try to load it. You can use VC Build Hook to target all previous AutoCAD versions from a single Visual Studio 2008 solution (if you have the correct version of Visual C/C++ installed alongside Visual Studio 2008).

In my testing so far, existing Visual Studio 2005 projects build without problems in Visual Studio 2008 when VC Build Hook is installed and the new 'BuildToolVersion' property is set to the correct version.

Labels: , , ,

3 Comments:
Anonymous Daniel said...
Very nice Owen, Thank you for this wonderful utility.
Question, do you think this will work for building mix managed/unmanaged and or
C++/CLI apps? Thanks

Daniel

Blogger Owen Wengerd said...
Thanks for the feedback, Daniel. VC Build Hook should work for mixed apps, but I haven't tried that yet. If you try it, please let me know whether you encounter any problems.

Anonymous Anonymous said...
Thanks Owen for your tool.

I downloaded the tool in an attempt to use VS2008 as IDE to develop a C++/CLI application which uses ObjectARX 2008 SDK.

It compiles well with an initial problem of incorrect library settings. After a small fix, build went well. But unfortunately the netload command inside AutoCAD exists with a "System.IO.FileNotFoundException:The specified module could not be found" exception.

I feel that this should not be related any way with the hook nor with the code.

Daniel and Owen, I request you to keep me updated in case if you come across any solution of clue that might solve my problem.

Thanks and till then, I'll use VS2008 for AutoCAD .Net API only :-(

regards,
Narayanan
SendtoNarayanan(at)Gmail[dot]com

Post a Comment

Links to this post:
Create a Link