<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Visual Studio on ManuSoft</title><link>http://www.manusoft.com/tags/visual-studio/</link><description>Recent content in Visual Studio on ManuSoft</description><generator>Hugo</generator><language>en-us</language><copyright>1991–2026</copyright><lastBuildDate>Wed, 06 Feb 2013 22:59:29 +0000</lastBuildDate><atom:link href="http://www.manusoft.com/tags/visual-studio/index.xml" rel="self" type="application/rss+xml"/><item><title>C++ function declaration tips</title><link>http://www.manusoft.com/archive/blog/c-function-declaration-tips/</link><pubDate>Wed, 06 Feb 2013 22:59:29 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/c-function-declaration-tips/</guid><description>&lt;p&gt;Creating and calling functions is one of the most fundamental tasks in C++ programming. The function declaration serves as the primary description of a function&amp;rsquo;s interface - or &lt;em&gt;contract&lt;/em&gt; - with callers, thereby making it the most important piece of code documentation. A good function declaration should convey as much information as possible. I&amp;rsquo;m sure an entire book could be written on the topic of function interface design, but I&amp;rsquo;ll just touch briefly on a few factors to consider when designing a function&amp;rsquo;s interface.&lt;/p&gt;</description></item><item><title>Using /delayload to specify dependent DLL path</title><link>http://www.manusoft.com/archive/blog/using-delayload-to-specify-dependent-dll-path/</link><pubDate>Sat, 26 Jan 2013 01:03:48 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/using-delayload-to-specify-dependent-dll-path/</guid><description>&lt;p&gt;Let&amp;rsquo;s say you have an ObjectARX module with an implicit dependency on another DLL. Your installer puts both your ARX module and the dependent DLL into a private application folder. Windows must be able to resolve the implicit DLL dependency at load time, otherwise it will fail to load your ARX module. Alas, Windows will not automatically search for the dependent DLL in your application folder, even though your ARX module is located there. Therefore your ARX module won&amp;rsquo;t load because the dependent DLL cannot be resolved.&lt;/p&gt;</description></item><item><title>Polymorphic bit flags in C++</title><link>http://www.manusoft.com/archive/blog/polymorphic-bit-flags-in-c/</link><pubDate>Wed, 19 Dec 2012 11:55:45 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/polymorphic-bit-flags-in-c/</guid><description>&lt;p&gt;I often encounter cases in ObjectARX programming where numerous boolean flags need to be persisted as part of an AutoCAD database object. For filing and for passing around to other functions, it&amp;rsquo;s most efficient to package those bit flags into a single unsigned integer. Below is an example that demonstrates how to use a union inside a containing class that can be simultaneously used as either a single unsigned integer or as individual booleans.&lt;/p&gt;</description></item><item><title>Registering an ARX/BRX module as a COM server</title><link>http://www.manusoft.com/archive/blog/registering-an-arxbrx-module-as-a-com-server/</link><pubDate>Tue, 11 Oct 2011 00:18:41 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/registering-an-arxbrx-module-as-a-com-server/</guid><description>&lt;p&gt;If you&amp;rsquo;re developing ARX modules that need to be registered as a COM server, you&amp;rsquo;re faced with some decisions about how to register them. In the old days before anyone cared about user permissions, registration could be safely accomplished at runtime, even via AutoLISP. Unfortunately runtime COM server registration just doesn&amp;rsquo;t work reliably any more under limited user accounts, not to mention registry redirection on 64-bit platforms. There is only one reliable way to register COM servers, and that&amp;rsquo;s doing it at install time under elevated privileges.&lt;/p&gt;</description></item><item><title>The MFC Balloon</title><link>http://www.manusoft.com/archive/blog/the-mfc-balloon/</link><pubDate>Fri, 15 Apr 2011 17:24:46 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/the-mfc-balloon/</guid><description>&lt;p&gt;The MFC version that ships with Visual Studio 2010 is known to cause &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/details/504714/statically-linked-mfc-applications-are-massive"&gt;major explosions in file size&lt;/a&gt; when you link statically. To avoid that problem, I use the Visual Studio 2008 build tools for such cases. I recently got quite a surprise when I rebuilt one such MFC application and discovered that the executable had ballooned from 400kb to 2MB in the space of one week despite only very minor changes.&lt;/p&gt;</description></item><item><title>ObjectARX Wizard for Visual Studio 2010</title><link>http://www.manusoft.com/archive/blog/objectarx-wizard-for-visual-studio-2010/</link><pubDate>Fri, 01 Apr 2011 20:04:33 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/objectarx-wizard-for-visual-studio-2010/</guid><description>&lt;p&gt;If you&amp;rsquo;re an ObjectARX programmer, you may still be using Visual Studio 2008 because you&amp;rsquo;ve been told that you must. It&amp;rsquo;s true that you need Visual Studio 2008 installed to compile native ObjectARX code, but with &lt;a href="http://daffodil.codeplex.com"&gt;Daffodil&lt;/a&gt; you can &lt;a href="http://otb.manusoft.com/2010/10/visual-studio-2010-native-multi-targeting.htm"&gt;do all your work in the Visual Studio 2010 IDE&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Debugging heap corruption with PageHeap</title><link>http://www.manusoft.com/archive/blog/debugging-heap-corruption-with-pageheap/</link><pubDate>Wed, 15 Dec 2010 12:58:33 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/debugging-heap-corruption-with-pageheap/</guid><description>&lt;p&gt;Heap corruption bugs in C++ code can present some difficult debugging challenges. Often the actual corruption goes unnoticed until some apparently random point in the future when the corrupt memory is accessed by unrelated code. In such cases, it&amp;rsquo;s almost impossible to infer the location of the bug using typical debugging tools.&lt;/p&gt;</description></item><item><title>Visual Studio 2010 Migration Post Mortem</title><link>http://www.manusoft.com/archive/blog/visual-studio-2010-migration-post-mortem/</link><pubDate>Mon, 18 Oct 2010 23:49:22 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/visual-studio-2010-migration-post-mortem/</guid><description>&lt;p&gt;I have more or less completed the task of migrating my internal projects to Visual Studio 2010. Native C++ programmers are pretty low on the totem pole of programming coolness these days, but Microsoft did throw us a few bones. At this point I have to say I&amp;rsquo;m ambivalent overall with VS 2010, but I really like some of the architectural changes and I&amp;rsquo;m excited about the future.&lt;/p&gt;</description></item><item><title>Visual Studio 2010 Native Multi-Targeting</title><link>http://www.manusoft.com/archive/blog/visual-studio-2010-native-multi-targeting/</link><pubDate>Thu, 07 Oct 2010 02:16:19 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/visual-studio-2010-native-multi-targeting/</guid><description>&lt;p&gt;I was hoping that Microsoft would address &lt;a href="http://otb.manusoft.com/2010/01/visual-studio-2010-and-vc-build-hook.htm"&gt;the need to target earlier versions of Visual Studio&lt;/a&gt; within the Visual Studio 2010 IDE, but since &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/details/570466/vs-2010-native-build-cannot-produce-ansi-response-files"&gt;they decided to punt&lt;/a&gt;, I tackled the problem myself. I&amp;rsquo;ve released my solution as an open source project named &lt;a href="http://daffodil.codeplex.com/"&gt;Daffodil for Visual Studio&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Using VC 7 build tools in Visual Studio 2010</title><link>http://www.manusoft.com/archive/blog/using-vc-7-build-tools-in-visual-studio-2010/</link><pubDate>Thu, 24 Jun 2010 16:13:38 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/using-vc-7-build-tools-in-visual-studio-2010/</guid><description>&lt;p&gt;&lt;em&gt;[Update: See &lt;/em&gt;&lt;a href="http://otb.manusoft.com/2010/10/visual-studio-2010-native-multi-targeting.htm"&gt;&lt;em&gt;Visual Studio 2010 Native Multi-Targeting&lt;/em&gt;&lt;/a&gt;&lt;em&gt;]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Developers, if you use &lt;a href="http://www.manusoft.com/resources/arxtips/vcbuildhook.html"&gt;VC Build Hook&lt;/a&gt; and/or need the same capability in Visual Studio 2010, please let Microsoft know by &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/details/570466/vs-2010-native-build-cannot-produce-ansi-response-files"&gt;voting for a fix&lt;/a&gt;. I&amp;rsquo;ve &lt;a href="http://otb.manusoft.com/2010/01/visual-studio-2010-and-vc-build-hook.htm"&gt;written before&lt;/a&gt; (and &lt;a href="http://otb.manusoft.com/2010/04/visual-studio-2010-ships.htm"&gt;here&lt;/a&gt;) about the problem. I think it is possible to hack a third party solution, but by far the best solution is for Microsoft to add back the ability to produce ANSI response files in service pack 1.&lt;/p&gt;</description></item><item><title>Visual Studio 2010 Ships</title><link>http://www.manusoft.com/archive/blog/visual-studio-2010-ships/</link><pubDate>Mon, 12 Apr 2010 20:34:40 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/visual-studio-2010-ships/</guid><description>&lt;p&gt;Visual Studio 2010 &lt;a href="http://blogs.msdn.com/visualstudio/archive/2010/04/12/visual-studio-2010-is-now-available.aspx"&gt;shipped today&lt;/a&gt; accompanied by .NET Framework 4.0. I blogged before about the switch to using the MSBuild build system, and how that theoretically could be helpful in targeting multiple AutoCAD versions from the same solution. The shipping VS 2010 does not support non-Unicode response files, so out-of-the-box it cannot target VC 7.0 (for AutoCAD 2006 and earlier). When time permits, I&amp;rsquo;m planning to see if I can find a workaround; in the meantime, I&amp;rsquo;ll continue to use VS 2008 for ObjectARX.&lt;/p&gt;</description></item><item><title>Visual Studio 2010 and VC Build Hook</title><link>http://www.manusoft.com/archive/blog/visual-studio-2010-and-vc-build-hook/</link><pubDate>Mon, 11 Jan 2010 20:32:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/visual-studio-2010-and-vc-build-hook/</guid><description>&lt;p&gt;&lt;em&gt;[Update: See &lt;/em&gt;&lt;a href="http://otb.manusoft.com/2010/10/visual-studio-2010-native-multi-targeting.htm"&gt;&lt;em&gt;Visual Studio 2010 Native Multi-Targeting&lt;/em&gt;&lt;/a&gt;&lt;em&gt;]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Many of you use my &lt;a href="http://www.manusoft.com/resources/arxtips/vcbuildhook.html"&gt;VC Build Hook utility&lt;/a&gt; to target multiple versions of AutoCAD from a single solution in Visual Studio 2008. Visual Studio 2010 now includes a new feature called &lt;a href="http://blogs.msdn.com/vcblog/archive/2009/12/08/c-native-multi-targeting.aspx"&gt;native multi-targeting&lt;/a&gt; that performs the same function as VC Build Hook. The new feature works great for using build tools back to VC 7.1, but it does not work with VC 7, which is required for targeting AutoCAD versions 2006 and earlier.&lt;/p&gt;</description></item><item><title>ObjectARX 2010: Dealing With Missing Exports</title><link>http://www.manusoft.com/archive/blog/objectarx-2010-dealing-with-missing/</link><pubDate>Sat, 28 Mar 2009 16:54:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/objectarx-2010-dealing-with-missing/</guid><description>&lt;p&gt;In the new ObjectARX 2010 SDK, Autodesk has added some new virtual member functions that are not exported as they should be. For example, the AcGiFaceData class has had two new virtual functions added for setting and getting the face transparency:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color:#990000;"&gt;class&lt;/span&gt; AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; public&lt;/span&gt; AcRxObject&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;br /&gt;{&lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;span style="color:#999999;"&gt;&lt;br /&gt;//[&amp;hellip; deleted for brevity]&lt;br /&gt;&lt;/span&gt;&lt;/i&gt; ACDB_PORT&lt;span style="color:#990000;"&gt; virtual&lt;/span&gt; AcDbObjectId&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;em&gt;&lt;/span&gt;&lt;/b&gt; materials&lt;b&gt;&lt;span style="color:#663300;"&gt;()&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; ACDB_PORT&lt;span style="color:#990000;"&gt; virtual&lt;/span&gt; AcGiMapper&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; mappers&lt;b&gt;&lt;span style="color:#663300;"&gt;()&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt; virtual&lt;/span&gt;&lt;span style="color:#ff6633;"&gt; void&lt;/span&gt; setTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;const&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; &lt;em&gt;&lt;/span&gt;&lt;/b&gt;transparency&lt;b&gt;&lt;span style="color:#663300;"&gt;);&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; virtual&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; transparency&lt;b&gt;&lt;span style="color:#663300;"&gt;()&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt;&lt;/strong&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt;private&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; AcGiImpFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt; &lt;em&gt;&lt;/span&gt;&lt;/b&gt;mpAcGiImpFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;br /&gt;};&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;As you can see, whoever added the new functions neglected to prefix them with the ACDB_PORT macro. ACDB_PORT evaluates to __declspec(export), which tells the compiler to export the function. Since the macro is missing, the new functions are not exported from acdb18.dll.&lt;br /&gt;&lt;br /&gt;Since these are virtual functions, you won&amp;rsquo;t have any problems calling them through a pointer to an AcGiFaceData object that was constructed by AutoCAD. The problem arises when you derive a class from AcGiFaceData. Since the functions are not exported, the linker has no way of resolving their address for creating the virtual function table of your derived class. This results in linker errors:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;acrxEntryPoint.obj : error LNK2001: unresolved external symbol &amp;ldquo;public: virtual void __thiscall AcGiFaceData::setTransparency(class AcCmTransparency const &lt;em&gt;)&amp;rdquo; (?setTransparency@AcGiFaceData@@UAEXPBVAcCmTransparency@@@Z)&lt;br /&gt;acrxEntryPoint.obj : error LNK2001: unresolved external symbol &amp;ldquo;public: virtual class AcCmTransparency * __thiscall AcGiFaceData::transparency(void)const &amp;quot; (?transparency@AcGiFaceData@@UBEPAVAcCmTransparency@@XZ)&lt;/blockquote&gt;Following is an example that results in these errors:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color:#990000;"&gt;class&lt;/span&gt; AcGiFaceDataEx&lt;b&gt;&lt;span style="color:#663300;"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; public&lt;/span&gt; AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;br /&gt;{&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt;public&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; AcGiFaceDataEx&lt;b&gt;&lt;span style="color:#663300;"&gt;() {}&lt;br /&gt; ~&lt;/span&gt;&lt;/b&gt;AcGiFaceDataEx&lt;b&gt;&lt;span style="color:#663300;"&gt;() {}&lt;br /&gt;}&lt;/span&gt;&lt;/b&gt; Test&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The only solution is to provide an implementation of the missing functions. In this case, it could be accomplished by something like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color:#990000;"&gt;class&lt;/span&gt; AcGiFaceDataEx&lt;b&gt;&lt;span style="color:#663300;"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; public&lt;/span&gt; AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;br /&gt;{&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; mpTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt;public&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; AcGiFaceDataEx&lt;b&gt;&lt;span style="color:#663300;"&gt;() :&lt;/span&gt;&lt;/b&gt; mpTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; NULL&lt;b&gt;&lt;span style="color:#663300;"&gt; ) {}&lt;br /&gt; ~&lt;/span&gt;&lt;/b&gt;AcGiFaceDataEx&lt;b&gt;&lt;span style="color:#663300;"&gt;() {&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; delete&lt;/span&gt; mpTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;; }&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; virtual&lt;/span&gt;&lt;span style="color:#ff6633;"&gt; void&lt;/span&gt; setTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;const&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; &lt;em&gt;&lt;/span&gt;&lt;/b&gt;transparency&lt;b&gt;&lt;span style="color:#663300;"&gt;)&lt;br /&gt; {&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; delete&lt;/span&gt; mpTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; mpTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; = (&lt;/span&gt;&lt;/b&gt;transparency&lt;b&gt;&lt;span style="color:#663300;"&gt;?&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; new&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;( &lt;em&gt;&lt;/span&gt;&lt;/b&gt;transparency&lt;b&gt;&lt;span style="color:#663300;"&gt; ) :&lt;/span&gt;&lt;/b&gt; NULL&lt;b&gt;&lt;span style="color:#663300;"&gt;);&lt;br /&gt; }&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; virtual&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; transparency&lt;b&gt;&lt;span style="color:#663300;"&gt;()&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt; {&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt; return&lt;/span&gt; mpTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;; }&lt;br /&gt;}&lt;/span&gt;&lt;/b&gt; Test&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;This will fix the linker errors, but there is no guarantee that it will work as intended. AutoCAD might access its internal transparency value directly without calling through the member functions, which means it would never &amp;ldquo;see&amp;rdquo; the transparency set through the replacement member functions. Furthermore, the addition of the new pointer member changes the size of the class, which causes AcGiFaceDataEx arrays to have a different memory footprint than AcGiFaceData arrays. Lastly, what if Autodesk fixes the problem in a future AutoCAD service pack?&lt;br /&gt;&lt;br /&gt;The ideal solution should not change the size of the class. It should check at runtime whether the function is exported, then use the exported function if it exists. That way, code that is written now will use the exported function if and when it becomes available in a future version of AutoCAD. When the function is not exported, an alternate implementation must be provided. This is not an unusual scenario, and the solution I present for the specific case of AcGiFaceData can be adapted to the more general problem.&lt;br /&gt;&lt;br /&gt;In the AcGiFaceData case, the missing functions are virtual functions. Knowing this, it is possible to use a trick to get the address of the real function. In the code below, the function getAcGiFaceData_vtable() constructs a temporary AcGiFaceData object, from which it extracts a pointer to the object&amp;rsquo;s virtual function table. The virtual function table is just an array of function pointers, so the address of the desired function can be obtained by indexing into the virtual function table. The question is, how far? By counting virtual functions and data members starting from the top of the class hierarchy: in this case, 6 virtual functions in AcRxObject plus 16 virtual functions in AcGiFaceData = 22.&lt;br /&gt;&lt;br /&gt;Note that obtaining a function pointer this way relies on Visual C++ implementation details, but this is safe to do since all ObjectARX modules must be compiled in Visual C++.&lt;br /&gt;&lt;br /&gt;Following is my solution to the missing AcGiFaceData functions:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color:#000099;"&gt;#pragma warning(push)&lt;br /&gt;#pragma warning(disable: 4608)&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#990000;"&gt;template&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt; &amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; typename&lt;/span&gt; Src&lt;b&gt;&lt;span style="color:#663300;"&gt;,&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; typename&lt;/span&gt; Dest&lt;b&gt;&lt;span style="color:#663300;"&gt; &amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Dest force_cast&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; Src src&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;br /&gt;{&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; union&lt;/span&gt; _convertor&lt;b&gt;&lt;span style="color:#663300;"&gt; {&lt;/span&gt;&lt;/b&gt; Dest d&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt; Src s&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt; _convertor&lt;b&gt;&lt;span style="color:#663300;"&gt;() :&lt;/span&gt;&lt;/b&gt; d&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#999900;"&gt;0&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;),&lt;/span&gt;&lt;/b&gt; s&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#999900;"&gt;0&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;) {} }&lt;/span&gt;&lt;/b&gt; convertor&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; convertor&lt;b&gt;&lt;span style="color:#663300;"&gt;.&lt;/span&gt;&lt;/b&gt;s&lt;b&gt;&lt;span style="color:#663300;"&gt; =&lt;/span&gt;&lt;/b&gt; src&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; return&lt;/span&gt; convertor&lt;b&gt;&lt;span style="color:#663300;"&gt;.&lt;/span&gt;&lt;/b&gt;d&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;br /&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;#pragma warning(pop)&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt;static&lt;/span&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; getAcGiFaceData_vtable&lt;b&gt;&lt;span style="color:#663300;"&gt;()&lt;br /&gt;{&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; static&lt;/span&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt; = &lt;em&gt;(&lt;/span&gt;&lt;/b&gt;FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;**)&amp;amp;&lt;/span&gt;&lt;/b&gt;AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;();&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; return&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt; (&lt;/span&gt;&lt;/b&gt;rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt;?&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt; :&lt;/span&gt;&lt;/b&gt; NULL&lt;b&gt;&lt;span style="color:#663300;"&gt;);&lt;br /&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff6633;"&gt;&lt;br /&gt;&lt;br /&gt;void&lt;/span&gt; AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;::&lt;/span&gt;&lt;/b&gt;setTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; transparency&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;br /&gt;{&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; typedef&lt;/span&gt;&lt;span style="color:#ff6633;"&gt; void&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt; (&lt;/span&gt;&lt;/b&gt;AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;::&lt;em&gt;&lt;/span&gt;&lt;/b&gt;F_setTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;)(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt; );&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; static&lt;/span&gt; F_setTransparency pfSetTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; =&lt;/span&gt;&lt;/b&gt; force_cast&lt;b&gt;&lt;span style="color:#663300;"&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;,&lt;/span&gt;&lt;/b&gt; F_setTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; &amp;gt;(&lt;/span&gt;&lt;/b&gt;GetProcAddress&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; GetModuleHandleA&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#009900;"&gt; &amp;ldquo;acdb18.dll&amp;rdquo;&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;),&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#009900;"&gt; &amp;ldquo;?setTransparency@AcGiFaceData@@UEAAXPEBVAcCmTransparency@@@Z&amp;rdquo;&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt; ));&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; if&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;( !&lt;/span&gt;&lt;/b&gt;pfSetTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;br /&gt; {&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; static&lt;/span&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;em&gt;&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt; =&lt;/span&gt;&lt;/b&gt; getAcGiFaceData_vtable&lt;b&gt;&lt;span style="color:#663300;"&gt;();&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; if&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; pfSetTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; =&lt;/span&gt;&lt;/b&gt; force_cast&lt;b&gt;&lt;span style="color:#663300;"&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;,&lt;/span&gt;&lt;/b&gt; F_setTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; &amp;gt;(&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt;[&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#999900;"&gt;22&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;] );&lt;br /&gt; }&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; if&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; pfSetTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;br /&gt; (&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;this&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;-&amp;gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt;pfSetTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;)(&lt;/span&gt;&lt;/b&gt; transparency&lt;b&gt;&lt;span style="color:#663300;"&gt; );&lt;br /&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;em&gt;&lt;/span&gt;&lt;/b&gt; AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;::&lt;/span&gt;&lt;/b&gt;transparency&lt;b&gt;&lt;span style="color:#663300;"&gt;()&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;br /&gt;{&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; typedef&lt;/span&gt; AcCmTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt; (&lt;/span&gt;&lt;/b&gt;AcGiFaceData&lt;b&gt;&lt;span style="color:#663300;"&gt;::&lt;em&gt;&lt;/span&gt;&lt;/b&gt;F_transparency&lt;b&gt;&lt;span style="color:#663300;"&gt;)()&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt; const&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; static&lt;/span&gt; F_transparency pfTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; =&lt;/span&gt;&lt;/b&gt; force_cast&lt;b&gt;&lt;span style="color:#663300;"&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;,&lt;/span&gt;&lt;/b&gt; F_transparency&lt;b&gt;&lt;span style="color:#663300;"&gt; &amp;gt;(&lt;/span&gt;&lt;/b&gt;GetProcAddress&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; GetModuleHandleA&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#009900;"&gt; &amp;ldquo;acdb18.dll&amp;rdquo;&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;),&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#009900;"&gt; &amp;ldquo;?transparency@AcGiFaceData@@UEBAPEAVAcCmTransparency@@XZ&amp;rdquo;&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt; ));&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; if&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;( !&lt;/span&gt;&lt;/b&gt;pfTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;br /&gt; {&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;&lt;br /&gt; static&lt;/span&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt; =&lt;/span&gt;&lt;/b&gt; getAcGiFaceData_vtable&lt;b&gt;&lt;span style="color:#663300;"&gt;();&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; if&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;/span&gt;&lt;/b&gt;&lt;br /&gt; pfTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; =&lt;/span&gt;&lt;/b&gt; force_cast&lt;b&gt;&lt;span style="color:#663300;"&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt; FARPROC&lt;b&gt;&lt;span style="color:#663300;"&gt;,&lt;/span&gt;&lt;/b&gt; F_transparency&lt;b&gt;&lt;span style="color:#663300;"&gt; &amp;gt;(&lt;/span&gt;&lt;/b&gt; rfVTable&lt;b&gt;&lt;span style="color:#663300;"&gt;[&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#999900;"&gt;23&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;] );&lt;br /&gt; }&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; if&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;(&lt;/span&gt;&lt;/b&gt; pfTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt; )&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; return&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt; (&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#990000;"&gt;this&lt;/span&gt;&lt;b&gt;&lt;span style="color:#663300;"&gt;-&amp;gt;*&lt;/span&gt;&lt;/b&gt;pfTransparency&lt;b&gt;&lt;span style="color:#663300;"&gt;)();&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt; return&lt;/span&gt; NULL&lt;b&gt;&lt;span style="color:#663300;"&gt;;&lt;br /&gt;}&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/p&gt;</description></item><item><title>Debugging ObjectARX: Break on Exception</title><link>http://www.manusoft.com/archive/blog/debugging-objectarx-break-on-exception/</link><pubDate>Mon, 12 May 2008 11:11:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/debugging-objectarx-break-on-exception/</guid><description>&lt;p&gt;I have presented a class entitled High Octane ObjectARX at &lt;a href="http://au.autodesk.com/event/"&gt;Autodesk University&lt;/a&gt; the past two years. In 2006 the focus was on project organization, and last year I focused more on techniques for supporting multiple versions of AutoCAD with a single Visual Studio solution, touching briefly on testing and profiling. For 2008 I plan to focus on debugging.&lt;/p&gt;</description></item><item><title>VC Build Hook utility for Visual Studio 2008</title><link>http://www.manusoft.com/archive/blog/vc-build-hook-utility-for-visual-studio/</link><pubDate>Mon, 26 Nov 2007 02:27:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/vc-build-hook-utility-for-visual-studio/</guid><description>&lt;p&gt;The new&lt;a href="http://msdn2.microsoft.com/vs2008/products/"&gt; Visual Studio 2008&lt;/a&gt; has been released, and to celebrate, I&amp;rsquo;ve updated &lt;a href="http://www.manusoft.com/resources/arxtips/vcbuildhook.html"&gt;VC Build Hook&lt;/a&gt;. The updated utility allows you to use the new IDE while still building with older versions of the build tools.&lt;br /&gt;&lt;br /&gt;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).&lt;br /&gt;&lt;br /&gt;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 &amp;lsquo;BuildToolVersion&amp;rsquo; property is set to the correct version.&lt;/p&gt;</description></item><item><title>Visual Studio Build Configuration Tip</title><link>http://www.manusoft.com/archive/blog/visual-studio-build-configuration-tip/</link><pubDate>Fri, 15 Jun 2007 12:30:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/visual-studio-build-configuration-tip/</guid><description>&lt;p&gt;I&amp;rsquo;ve received several emails recently from users of my &lt;a href="http://www.manusoft.com/resources/arxtips/vcbuildhook.html"&gt;VC Build Hook utility&lt;/a&gt; that mention switching the &amp;lsquo;UseVC7Paths&amp;rsquo; setting on and off depending on the build configuration they are working on. If you are doing this, you need to change your project structure!&lt;/p&gt;</description></item><item><title>My ManuSoft manifest manifesto</title><link>http://www.manusoft.com/archive/blog/my-manusoft-manifest-manifesto/</link><pubDate>Thu, 11 Jan 2007 13:10:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/my-manusoft-manifest-manifesto/</guid><description>&lt;p&gt;With the advent of Visual Studio 2005 and automatically generated manifest files, the topic of when and how to use manifest files comes up occasionally. Since a default ObjectARX wizard generated project in Visual Studio 2005 generates an embedded manifest by default, most people don&amp;rsquo;t even think about it. Of course that was the whole idea &amp;ndash; the manifest would ensure that the correct dependent DLLs get loaded, and voila, no &lt;em&gt;need&lt;/em&gt; to think about it. One of my programming axioms applies in this case: &lt;a href="http://en.wikipedia.org/wiki/TANSTAAFL"&gt;TANSTAAFL&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The problem is that ObjectARX applications are not in charge. AutoCAD is in charge, and it will decide which VC runtime and MFC runtime DLLs to load. If your ObjectARX application loads a different VC or MFC runtime than the ones AutoCAD is using, you&amp;rsquo;ll encounter big problems. I&amp;rsquo;ve always advised disabling the manifest completely (see my &lt;a href="http://www.manusoft.com/resources/arxtips/vcbuildhook.html"&gt;ObjectARX Tips&lt;/a&gt; page) to avoid such a possibility. Unfortunately, there&amp;rsquo;s a catch.&lt;br /&gt;&lt;br /&gt;The problem is that linking to the ATL80.DLL file isn&amp;rsquo;t possible by just disabling the manifest and doing nothing more. ATL is now a side-by-side (SxS) assembly, and it no longer lives on the Windows support path, so a standard un-manifested DLL won&amp;rsquo;t be able to find it. The preferred solution is to link statically to ATL (see Configuration -&amp;gt; General -&amp;gt; &amp;lsquo;Use of ATL&amp;rsquo; in VS 2005 project properties) and avoid the problem altogether. If you only have one module that uses ATL, this is always the best solution.&lt;br /&gt;&lt;br /&gt;The less desirable solution is to add a &lt;strong&gt;&lt;em&gt;manually-created&lt;/em&gt;&lt;/strong&gt; manifest that specifies the desired ATL SxS assembly, but ignores the VC and MFC runtime DLLs. You&amp;rsquo;ll still need to decide whether to make ATL &lt;a href="http://msdn2.microsoft.com/en-us/library/ms235531.aspx"&gt;shared or private&lt;/a&gt;, and in either case you &lt;strong&gt;&lt;em&gt;must&lt;/em&gt;&lt;/strong&gt; &lt;a href="http://msdn2.microsoft.com/en-us/library/ms235299(VS.80).aspx"&gt;distribute ATL with your application&lt;/a&gt; to ensure that it is available when your application is deployed. You can cheat, and let VS generate your manifest file (instruct it to &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; embed the file), then just edit the resulting .manifest file to remove references to the VC and MFC assemblies. For example, here&amp;rsquo;s one that I generated (you&amp;rsquo;ll need to generate your own to ensure that the manifest matches the version you are redistributing):&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&amp;lt;?xml version=&amp;ldquo;1.0&amp;rdquo; encoding=&amp;ldquo;UTF-8&amp;rdquo; standalone=&amp;ldquo;yes&amp;rdquo;?&amp;gt;&lt;br /&gt; &amp;lt;assembly xmlns=&amp;ldquo;urn:schemas-microsoft-com:asm.v1&amp;rdquo; manifestversion=&amp;ldquo;1.0&amp;rdquo;&amp;gt;&lt;br /&gt; &amp;lt;dependency&amp;gt;&lt;br /&gt; &amp;lt;dependentassembly&amp;gt;&lt;br /&gt; &amp;lt;assemblyidentity type=&amp;ldquo;win32&amp;rdquo; name=&amp;ldquo;Microsoft.VC80.ATL&amp;rdquo; version=&amp;ldquo;8.0.50727.762&amp;rdquo; processorarchitecture=&amp;ldquo;x86&amp;rdquo; publickeytoken=&amp;ldquo;1fc8b3b9a1e18e3b&amp;rdquo;&amp;gt;&lt;br /&gt;&amp;lt;/assemblyidentity&amp;gt;&lt;br /&gt; &amp;lt;/dependentassembly&amp;gt;&lt;br /&gt; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;lt;/assembly&amp;gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;In my work, I&amp;rsquo;ve had very little need for manifests. The VC optimizer is able to strip the unused portions of statically linked ATL out of your code, leaving a much smaller footprint than the entire assembly would require. This eliminates the need to redistribute ATL with your application, thus reducing the overall potential for deployment issues. Nevertheless, there are exceptions to every rule, and your mileage may vary.&lt;/p&gt;</description></item><item><title>I'll take web sites for $200, Alex: Part I</title><link>http://www.manusoft.com/archive/blog/ill-take-web-sites-for-200-alex-part-i/</link><pubDate>Mon, 08 Jan 2007 17:35:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/ill-take-web-sites-for-200-alex-part-i/</guid><description>&lt;p&gt;I&amp;rsquo;m one of those throwbacks that learned HTML by typing it in Notepad. I&amp;rsquo;ve since moved up to using the &lt;a href="http://msdn.microsoft.com/vstudio/"&gt;Visual Studio&lt;/a&gt; editor; it does syntax coloring, error highlighting, and has a &amp;ldquo;design&amp;rdquo; mode for previewing the page, yet it&amp;rsquo;s a very utilitarian editor that I feel comfortable with. I do use &lt;a href="http://en.wikipedia.org/wiki/Microsoft_FrontPage"&gt;FrontPage&lt;/a&gt; when I need to manage connections between multiple HTML pages, but mostly in raw HTML mode. When I use &lt;a href="http://en.wikipedia.org/wiki/WYSIWYG"&gt;WYSIWYG&lt;/a&gt; design mode in FrontPage, I inevitably end up cleaning out a lot of unnecessary junk that it includes in the generated HTML. I think it&amp;rsquo;s fair to say that my obsession with clean HTML results in utilitarian, functional, and standards conformant presentations &amp;ndash; but with a decided lack of graphic appeal.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.manusoft.com/"&gt;ManuSoft&lt;/a&gt; and &lt;a href="http://www.cadlock.com/"&gt;CADLock&lt;/a&gt; web sites are examples of this utilitarian approach. The ManuSoft site uses no fancy graphics and relies very little on client side scripting, and it supports a hierarchical navigation system using only standard hyperlinks. I like that minimalist approach, but the price for clean HTML being served to clients is a lot of work on the server to maintain the site. As a result, I don&amp;rsquo;t update the site very often because it&amp;rsquo;s just too difficult.&lt;br /&gt;&lt;br /&gt;This blog was the first step toward realizing a goal of making it easier to add new content. After all, the raison d&amp;rsquo;être of blogs is to minimize the latency between the writer&amp;rsquo;s stream of consciousness and words on the web by making it irresistibly easy to add new content. This is precisely why blogs have become so popular.&lt;br /&gt;&lt;br /&gt;Unfortunately, I soon found limitations with my blog. Tabular lists of data still require manual HTML input, it is difficult to customize the content area outside the individual posts on the blog page, and most aspects of the hosted blog software are outside my control. I wanted more.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.cadcourt.com/"&gt;Autodesk vs. Open Design Alliance lawsuit&lt;/a&gt; gave me an excuse to take the next step: implement the &amp;ldquo;blog&amp;rdquo; concept across an entire web site with software that I control. So, I decided to swallow my pride and learn how to create an entire web site that would be so easy to update that I would actually update it frequently &amp;ndash; even if it meant messy HTML code. Stay tuned for Part II, choosing a hosting service and deciding which software to use.&lt;/p&gt;</description></item><item><title>VCBuildHook updated for VS 2005 SP1</title><link>http://www.manusoft.com/archive/blog/vcbuildhook-updated-for-vs-2005-sp1/</link><pubDate>Tue, 19 Dec 2006 17:13:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/vcbuildhook-updated-for-vs-2005-sp1/</guid><description>&lt;p&gt;I&amp;rsquo;ve installed &lt;a href="http://otb.manusoft.com/2006/12/visual-studio-2005-service-pack-1-is.htm"&gt;Visual Studio 2005 SP1&lt;/a&gt; and have been busy testing all my projects to make sure they didn&amp;rsquo;t break. &lt;a href="http://www.microsoft.com"&gt;Microsoft&lt;/a&gt; did fix at least one of the bugs I reported (the resource editor choked on resource strings that contained an embedded NULL character), but the IDE still crashes fairly consistently if I initiate a large solution build while the Intellisense database is being rebuilt. SP1 also managed to break my &lt;a href="http://www.manusoft.com/resources/arxtips/vcbuildhook.html"&gt;VCBuildHook utility&lt;/a&gt;, so I&amp;rsquo;ve uploaded an updated version (2.0.3.0) for use with SP1.&lt;/p&gt;</description></item><item><title>Visual Studio 2005 Service Pack 1 is here!</title><link>http://www.manusoft.com/archive/blog/visual-studio-2005-service-pack-1-is/</link><pubDate>Mon, 18 Dec 2006 16:51:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/visual-studio-2005-service-pack-1-is/</guid><description>&lt;p&gt;Finally, the long awaited &lt;a href="http://msdn.microsoft.com/vstudio/support/vs2005sp1"&gt;service pack 1 for Visual Studio 2005&lt;/a&gt; is released! The service pack has been in the pipeline since soon after Visual Studio 2005 shipped last November, with release dates slipping month after month. The latest official release date was announced as &amp;ldquo;early 2007&amp;rdquo;. Perhaps this was an intentional attempt to alleviate some of the waiting pains with a suprise release (or maybe just the Microsoft rumor mill on autopilot).&lt;br /&gt;&lt;br /&gt;Be prepared for a long install. The download page warns that it could take an hour or more to verify digital signatures before the service pack installation even begins.&lt;/p&gt;</description></item><item><title>Visual Studio Version Hunt</title><link>http://www.manusoft.com/archive/blog/visual-studio-version-hunt/</link><pubDate>Fri, 08 Dec 2006 20:06:00 +0000</pubDate><guid>http://www.manusoft.com/archive/blog/visual-studio-version-hunt/</guid><description>&lt;p&gt;If you&amp;rsquo;ve been programming with ObjectARX for a while, you already know that each version of the &lt;a href="http://www.objectarx.com/"&gt;ObjectARX SDK&lt;/a&gt; only works with a specific version of &lt;a href="http://msdn.microsoft.com/vstudio/"&gt;Visual Studio&lt;/a&gt;. Mazhar Basa touches on the subject in his article &lt;a href="http://www.dailyautocad.com/objectarx/components-of-objectarx-applications/"&gt;Components of ObjectARX Applications&lt;/a&gt;. My &lt;a href="http://www.manusoft.com/resources/arxtips/vcbuildhook.html"&gt;VCBuildHook utility&lt;/a&gt; makes it possible to build for multiple target AutoCAD versions from a single Visual Studio 2005 solution, but this utility still needs the older versions of Visual Studio to be installed on the same system in order to perform its magic.&lt;br /&gt;&lt;br /&gt;The problem is, legitimate licenses of older versions of Visual Studio are hard to come by. Back in the Visual Studio .NET 2003 days, you could purchase a new license of VS 2003, then get a free license downgrade from Microsoft that allowed you to install Visual Studio 2002 side by side on the same system. That combination allowed you to target AutoCAD versions as far back as AutoCAD 2004. Unfortunately, Microsoft stopped offering the VS 2002 downgrade license when Visual Studio 2005 began shipping in November of 2006.&lt;br /&gt;&lt;br /&gt;The end result is that new ObjectARX programmers are faced with a dilemma if they need to target anything older than AutoCAD 2007. One of the attendees at my &amp;ldquo;High-Octane ObjectARX&amp;rdquo; class at &lt;a href="http://au.autodesk.com/"&gt;AU 2006&lt;/a&gt; reminded me that &lt;a href="http://msdn.microsoft.com/"&gt;MSDN&lt;/a&gt; (Microsoft Developer Network) members can download older versions of Visual Studio from the MSDN subscriber download center.&lt;br /&gt;&lt;br /&gt;I have verified that Visual Studio .NET 2002 (VS 2002) is available for download to MSDN Professional subscribers, but I could not find Visual Studio 6.0, which is required to target AutoCAD 2000 - 2002. Visual Studio 4.2 (required for AutoCAD R14) is available though, so maybe I&amp;rsquo;m just not looking in the right place.&lt;br /&gt;&lt;br /&gt;If you are a professional software developer, whether commercial or in-house, you should consider subscribing to &lt;a href="http://msdn.microsoft.com/"&gt;MSDN&lt;/a&gt; for various reasons. If you&amp;rsquo;re an ObjectARX programmer and need to target older versions of AutoCAD, MSDN may be the only way to obtain the older Visual Studio build tools and libraries that you&amp;rsquo;ll need.&lt;/p&gt;</description></item></channel></rss>