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

yang686526 2009-05-07 04:23 PM

【转帖】still Having Trouble With Recomputedimblock
 
still having trouble with recomputedimblock
still having trouble with recomputedimblock
i never got a response to my last question on this, so i tried simply adding the recomputedimblock files to my project and added the line:
:drxdynamiclinker()->loadapp("recomputedimblock").release();
after odinitialize()
everything seemed to compile and link ok, but i am still getting an exception on this line:
m_pcurrentdim->recomputedimblock();
with the following text:
unhandled exception at 0x7c81eb33 in ais.exe: microsoft c++ exception: oderror_notthatkindofclass @ 0x0012cb38.
pointing to this code:
_crtimp void * __cdecl malloc (size_t nsize)
{
void *res=_nh_malloc_dbg(nsize,_newmode,_normal_block,n ull,0);
rtccallback(_rtc_allocate_hook, (res, nsize, 0));
return res;
}
what am i missing?
if you use dll version recomputedimblock.drx must be in your application folder.
if static build - see odamfcapp or odwriteex samples for using static modules - search for recomputedimblock.
sergey slezkin
got it
i eventually copied in the correct mix of maps and includes. still, documentation would be good.
static modules usage is described in dwgdirect developer's guide - creating custom objects and applications.
sergey slezkin


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