查看单个帖子
旧 2009-05-04, 05:20 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】can i place proxy classes in a dbx-file 9or similar0

can i place proxy classes in a dbx-file (or similar)
can i place proxy classes in a dbx-file (or similar)
i want to place the proxy-classes i need to read in dbx-files (or similar) and have them loaded at demand. is this possible in the current version of dwgdirect, and if not, will it be possible at all?
currently custom classes implementation can't be loaded by demand - application must be statically linked with them.
we plan to implement loading on demand. probably by the end of year.
sergey slezkin
thanks. is there an example how that dbx project might look like?
custom class example is in examplecustobject.h and .cpp inside odamfcapp sample.
custom commands are not implemented yet.
sergey slezkin
i have already created the proxy classes. i'm wondering how to write a dll which contains the proxy classes so my main application can load them.
how shall the dll project look like to be linkable to the main application (to use with od_db_system_services::loadapp or od_db_system_services::loadmodule), or is it just to write a dll that exports the classes and use them?
currently loadmodule, loadapp dunctionality is not implemented.
for now you can just write dll exporting the classes.
your application should load it and register your classes before using them (and before loading a drawing containing them).
before exiting your application should unregister the classes.
sergey slezkin
thanks. i'll try that
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)