几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】getting oddbobjectid for dwgdbfiler (http://www.dimcax.com/hust/showthread.php?t=16416)

yang686526 2009-05-05 11:31 AM

【转帖】getting oddbobjectid for dwgdbfiler
 
getting oddbobjectid for dwgdbfiler?
getting oddbobjectid for dwgdbfiler?
hi all :
i'm in the process of writing a oddwgdbfiler-derived class for dumping objects that i can't handle otherwise in my application. i'm perplexed as to how i can read/write oddbobjectid-derived objects (ie handles, softptr etc.) with the api available on oddbobjectid.
am i missing something obvious here? i assume that the object id is an unsigned int (or something of the sort) under the hood but how does one actually gain access to it?
thanks in advance;
sga
objectid exists only at application run-time (actually it's a memory pointer). objectid is saved to file as handle -oddbobjectid::gethandle().
sergey slezkin


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