几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】dll problem (http://www.dimcax.com/hust/showthread.php?t=15758)

yang686526 2009-05-04 07:57 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 02:34 AM.