![]() |
【转帖】有没有谁知道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. |