DWG TrueView

DWG TrueView

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

printing files silently from c++ application using DWG TrueView

266 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?

 

thanks

 

jahu

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.