几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】有没有谁知道saveas()函数的参数怎么写呀? (http://www.dimcax.com/hust/showthread.php?t=7753)

yang686526 2009-04-18 03:56 PM

【转帖】有没有谁知道saveas()函数的参数怎么写呀?
 
有没有谁知道saveas()函数的参数怎么写呀?
有没有谁知道saveas()函数的参数怎么写呀?
我在学习用vc的automation写auto cad图
iacadapplication app;
if(!app.createdispatch("autocad.application.15",null)) exit(1);
iacaddocuments docs;
docs.attachdispatch(app.getdocuments());
iacaddocument doc;
doc.attachdispatch(app.getactivedocument());
char* p="acdb::acr15_dwg";
doc.saveas("d:\\2.dwg",_variant_t(p)); //执行情况是,出来一个没有内容的警告框,存盘失败
应该是文件格式不对,这里有谁知道该怎么设置吗?
我想第二个参数应该对应 acapdocument::saveformat enum 里面的数值。
试一下:int p=12;
silence of happiness....


所有的时间均为北京时间。 现在的时间是 01:16 PM.