![]() |
【转帖】acdbcurdwg的头文件
acdbcurdwg的头文件
acdbcurdwg的头文件 我开始用 acdbhostapplicationservices()->workingdatabase() ->getsymboltable(pblocktable, acdb::kforread); 来获得块表指针还可以, 但是后来改用 acdbcurdwg()->getblocktable(pblocktable,acdb::kforread); 却总报错 error c2065: 'acdbcurdwg' : undeclared identifier error c2227: left of '->getblocktable' must point to class/struct/union 我想应该是头文件没有添加 但是却没有搜索到 请指点一下应改添加什么头文件 或者在什么地方,怎样搜索应该添加的头文件 migrtion.h 我的qq 172522850 非常感谢shinjikun,我试过拉,没有问题啦。 不过怎样查找呢我从doc的arxdoc.chm中查过但是查不到包含文件 能否再麻烦您 把查询的方法告诉一下! 在sdk中几乎每一个函数或类的单独介绍中都有一个叫做include file的条目。这就是所需要包含的.h文件的名字, 比如你所要的acdbcurdwg宏那一页大约是这样写的: this function is deprecated and has been replaced with the global curdwg. it is #defined in migrtion.h for transition purposes only. include both dbapserv.h as well as migrtion.h in your application. the dbapserv.h header file is needed because it defines acdbhostapplicationservices(). developers should call acdbhostapplicationservices()->workingdatabase() instead of acdbcurdwg() when they want to refer to the current database. note anyone who uses acdbcurdwg() or acdbhostapplicationservices()->workingdatabase() will also need to link with acutil15.lib. include file migrtion.h 最后标明了.h文件的名字, 另外,建议你使用arxwizard,如果坚持不使用arxwizard的话,也千万不要将各个.h文件都包含,这不是r16以后的写法,因为r16以后,sdk提供了arxheaders.h头文件和dbxheaders.h头文件,两个头文件包含了arx和dbx所需的所有.h文件,并令编译器连接所有所需的.lib文件,这使得你在进行版本移植的时候变得特别方便,旧版sdk的程序,一般不需要修改太多代码就可以使用新版的sdk。并且也就不会有头文件漏加的情况了 我的qq 172522850 谢拉 我先在用的是 现在开始学的话,不如从 |
| 所有的时间均为北京时间。 现在的时间是 04:43 PM. |