查看单个帖子
旧 2009-05-04, 07:57 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】dll problem

dll problem
dll problem
i use dwgdirect in a dll.but for some special reasons,this dll has no app class in it such as no class is inherited from cwinapp.
however,in the example of odamdiapp,the app class is also inherited from exsystemservices and exhostappservices,i define an own class which inherited from them,but it's has problems when reading files. is it have to exist a app class in dwgdirect program?if not,how to solve it?
who can help me?thanks a lot!
if you look at the example readex you will find
class myservices : public exsystemservices, public exhostappservices
{
};
.
.
.
odrxobjectimpl<myservices> svcs;
odinitialize( &svcs );
:drxinitwinntcrypt();
oddbdatabaseptr pdb;
pdb = svcs.readfile "myfile.dwg", false, false, oda::ksharedenyno, null );
it does not depend upon an 'app' class to use these classes.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)