我想调用C语言编写的动态链接库里面的函数
但其中 有一个函数是:
函数原型:IOCARD_API GX_GetAD(short Chanel,short *val)
函数说明:取指定通道的AD值
参数说明:Chanel为通道号,取值为1-16,val为该通道转换结果
请问我该如何在delphi中定义这个函数 并调用啊?????
 我是这样调用的
procedure GX_GetAD(chanel:integer;val:^integer);stdcall external 'IoCard.dll';
但这行程序老报这样的错:[Error] main.pas(75): Identifier expected but '^' found
  请问各位高手该怎么办啊。。谁最快帮我解决问题   直接100分

解决方案 »

  1.   

    ^integer 不是一种数据类型,如果说要的话也是 pinteger;
      

  2.   

    非常感谢!!!我delphi 基础不很好,,,,,我会给你100分的
      

  3.   

    type
      PInteger = ^Integer;
      

  4.   

    C里的Short对应Delphi中的是SmallInt, 不是Integer:procedure GX_GetAD(chanel: SmallInt; val: PSmallInt); stdcall; external 'IoCard.dll';
      

  5.   

    我结贴了,,,绝对信誉,,mdejtod说得对。最快回答我的问题