做与VC对话的DLL,对方写接口用到了pascal的关键字,具体如下!!!(70分)

  • 主题发起人 主题发起人 gold8
  • 开始时间 开始时间
G

gold8

Unregistered / Unconfirmed
GUEST, unregistred user!
typedef struct tag_STOCKINFO <br>{<br>&nbsp; &nbsp; &nbsp; &nbsp; char &nbsp; &nbsp; &nbsp; Name[9]; &nbsp; &nbsp; &nbsp;//名称<br>&nbsp; &nbsp; &nbsp; &nbsp; short &nbsp; &nbsp; &nbsp;Unit; &nbsp; &nbsp; &nbsp; &nbsp;// 单位 *******<br>&nbsp; &nbsp; &nbsp; &nbsp; long &nbsp; &nbsp; &nbsp; VolBase; &nbsp; &nbsp; // 量比的基量<br>&nbsp; &nbsp; &nbsp; &nbsp; float &nbsp; &nbsp; &nbsp;cdp; &nbsp; &nbsp; &nbsp; &nbsp; // 中价<br>&nbsp; &nbsp; &nbsp; &nbsp; float &nbsp; &nbsp; &nbsp;nh; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// 卖点<br>&nbsp; &nbsp; &nbsp; &nbsp; float &nbsp; &nbsp; &nbsp;nl; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// 买点<br>}<br><br>表示单位的 unit 起了冲突,这种情况如果处理,为什么呢。
 
gold8:<br>你试过了吗?有冲突吗?<br>变量名仅仅是给我们程序员看的,在编译器看来,都是一样的,就是个地址。<br>所以,只要你在Delphi这边不使用Unit,VC那边你不用管的。<br>
 
谢谢<br>实践出真知
 
后退
顶部