DWG TrueView
Welcome to Autodesk’s DWG Trueview Forums. Share your knowledge, ask questions, and explore popular DWG Trueview topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

printing files silently from c++ application using DWG TrueView

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
569 Views, 0 Replies

printing files silently from c++ application using DWG TrueView

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

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report