查看单个帖子
旧 2009-05-07, 04:23 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)