Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
WIth 2013's move to allow the use of Embed Interop Types, I thought it was going to help with different versions so we no longer had to reference the Interops in the ObjectARX folders (vs those listed in the GAC) when working with multiple versions. However, it appears when doing so I can no longer build a project on a 64 bit machine and have it run on a 32 bit machine. All calls to Acad* objects (AcadApplication, AcadDocument, etc.) fail with messages similar to this:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Autodesk.AutoCAD.Interop.AcadApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{070AA05D-DFC1-4E64-8379-432269B48B07}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Any ideas on how to get this to work with just one build?
Solved! Go to Solution.
This is the same approach we take, although we have it worse as we support 2010, 2011, 2012 and now 2013. Oh and we have switches to build 64-bit and 32-bit versions of out plugin to suit the two versions
*****************************************************
What are the switches?
Tom