I've never seen any good purpose served by religiously
constrining one's self to only managed code, especially
since a good part of the AutoCAD managed APIs merely
delegate to native code anyhow. Most of the real-world
apps I've built depend on native components that I had
to write in mixed-mode C++/CLI, in order to use parts
of the native API that aren't exposed to managed code.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5772958@discussion.autodesk.com...
I had a strictly managed environment in my mind, but you're right, using p/invoke is more 'straightforward'.