DLL在VC里面的定义DllAPI bool __stdcall SetReaderSelectParm(GEN2_SELECT_SETTINGS *pSelectSettings,byte *pBytMaskBit)struct GEN2_SELECT_SETTINGS
{
C1G2Bank BankSelect;
byte Action;
SELECTTARGET Target;
WORD WordStartBitPoint;
byte MaskBitLength;
bool bTruncate;
};
DLL需要输入结构和byte数组的指针
本人对delphi不熟,现在边学边看把结构和定义都写好了,不知道哪里出问题,请大家看看    type
       GEN2_SELECT_SETTINGS=record
       BankSelect:C1G2Bank;
       Action:byte;
       Target:SELECTTARGET;
       WordStartBitPoint:integer;
       MaskBitLength:byte;
       bTruncate:boolean;
    end;
    pGEN2_SELECT_SETTINGS=^GEN2_SELECT_SETTINGS;function SetReaderSelectParm(pSelectSettings:pGEN2_SELECT_SETTINGS;pBytMaskBit:pByte):boolean;stdcall; external 'QuanrayReader.dll';BUTTON里面的部分代码var pBytMaskBit:PByteArray;
var pSelect_para:pGEN2_SELECT_SETTINGS;
var BytMaskBit: array[1..200] of byte;中间代码把BytMaskBit,机构体分别赋值
然后获取指针地址    pBytMaskBit:=@BytMaskBit[1];
    pSelect_para:=@Select_para;    if SetReaderSelectParm(pSelect_para,pBytMaskBit) then   ShowMessage('ok!') else ShowMessage('error!');
现在编译都没通,估计是声明方面有问题:
if SetReaderSelectParm(pSelect_para,pBytMaskBit) then   ShowMessage('ok!') else ShowMessage('error!');
[错误] Unit1.pas(579): Incompatible types: 'TByteArray' and 'Byte'
请大家帮下忙,谢谢!!!