高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|