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

yang686526 2009-05-04 07:26 PM

【转帖】did i call odinitialize90
 
did i call odinitialize()?
did i call odinitialize()?
is there a way to determine whether or not odinitialize() has been called for a particular process? i have run into situations where i need to call oduninitialize() as part of exception handling, and it would be nice to be able determine whether or not it needs to be called, since if i call oduninitialize() twice it throws an exception.
i realize i could do this with flags in my code, but i was wondering of there is a way to do this that is part of the toolkit.
thanks.
bob
you may check if odrxdynamiclinker() returns zero.
vladimir


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