找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 615|回复: 2

[求助]:MDL开发中的问题-如何给MS中的实体附加用户数据?

[复制链接]
发表于 2002-11-1 10:24:43 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
请教:如何给MS中的实体附加用户数据?
比如给LINE(TYPE == 3)附加我定义的数据(CHAR* , DOUBLE)。
若写过ARX的程序,就像给使用“XDATA 或 XRECORD”一样?

:8
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2002-11-1 21:16:53 | 显示全部楼层
希望對你有!!

User Attribute Linkages
When building your application:
1.        Create a ".mt" file that contains createdatadef statements for every struct that will be used to define the data portion of your user attribute linkages. The ".mt" file must include the header files where the structures are defined. It must also include pragmas for treating the structure as packed little endian data. For example:

      #include <myfile.h>  /* This defines "mylinkagestruct" */

      #pragma packedLittleEndianData

      createDataDef (mylinkagestruct, MYLINKAGE_DATADEF_ID);

2.        Update your application's make file to compile the ".mt" file using the rsctype compiler. The resulting ".r" file must be compiled with rcomp, and the subsequent ".rsc" file must be lib'ed into your application's ".ma" file using rlib.

At execution time:
3.        Use the mdlLinkage_... routines for appending, extracting, and deleting user data linkages to/from elements. The mdlLinkage_... routines take data definition IDs and call the mdlCnv_... functions internally.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2002-11-9 16:41:48 | 显示全部楼层
非常感谢:"u2u"!
不知您是否在开发中广泛的使用了这种方法?
或者用数据库和实体的链接等别的方法来建立"用户数据"和"MS实体"的关系?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-5-22 19:41 , Processed in 0.308750 second(s), 35 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表