DWG TrueView

DWG TrueView

New Member
Posts: 1
Registered: ‎02-10-2014
Message 1 of 1 (185 Views)

printing files silently from c++ application using DWG TrueView

185 Views, 0 Replies
02-10-2014 01:23 AM

Hi all,


sorry if I'm posting into wrong forum.


I'm trying to automate DWG TrueView to print my files using my c++ application. I noticed that it comes with COM interface.

here is my code:


CLSID clsid;

lHr = CLSIDFromProgID(_T("AutoCAD.Application.19"), &clsid);

if(FAILED(lHr)) throw(0);

IDispatchPtr lApplicationDisp;

lHr = lApplicationDisp.CreateInstance(clsid);


Looks like I got the right clsid, but CreateInstance hangs for a while and then returns "Server execution failed" error. Do you know why? Is that even possible to do?





Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.