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

access database in exgsdirectxdevice
access database in exgsdirectxdevice
hello,
i have been adapting the exgsdirectxdevice codes for our use.
though accessing database in the codes,
i can not find even a similar case.
thanks.
you can use odgicontect* odgsdevice::usergicontext(),
cast the pointer to odgicontextfordbdatabase* and get database from it.
sergey slezkin
thank you for your reply.
can i use "odgsdevice::usergicontext()" only after "setusergicontext()"?

setusergicontext() is called within dwgdirect rendering framework, in oddbgsmanager's functions (setupactivelayoutviews, setuplayoutviews).
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)