查看单个帖子
旧 2009-05-05, 08:34 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】dwgdirect in dll

dwgdirect in dll
dwgdirect in dll
hi
i've written a dll that links with the dwgdirect libraries (version 1.10). i use visual studio .net 2003 and the vc2003md (multithreaded dll) libraries from dwgdirect distribution. so far, everything works without any problems. even when i use my dll from an unmanaged c++ project (console application) i can build (and run) everything without problems.
but now i want to use the dll from a managed c++ dll. as soon as i include a header file (odacommon.h and odadefs.h are ok, but for instance entities.h not) from dwgdirect the following two error occurs:
link : error lnk2020: unresolved token (0a00006e) odrxobject.__dtor
link : error lnk2020: unresolved token (0a00006f) odrxobject.copyfrom
so there is no additional code in the dll, the single c++ in the managed dll project contains only:
code:
#include "odacommon.h"
#include "odadefs.h"
#include "entities.h"
do i have to set specific compiler, linker flags to compile the dwgdirect libraries into my dll? i've seen the following line:
code:
#ifdef _toolkit_in_dll_
do i have to define this? i tried it once but it did not work (lots of linker errors...).
has anybody ever used dwgdirect from a managed c++ dll (mixed-mode dll)? any ideas what could be wrong? is there some documentation or an example i haven't found so far?
simon
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)