怒
怒抛头颅
Unregistered / Unconfirmed
GUEST, unregistred user!
我把问题再描述一下吧:
有一个VC编写的动态链接库,同时也是一个OLE,我在系统注册后,在delphi7中用Import Library安装上了这个ACTIVEX,其中有这么一个函数:
procedure sendMsg(const comPort: WideString; var bmp: byte; address: OleVariant; bmpLength: OleVariant);
现在需要将一幅图片(大小:320×32象素 24位)传给那个bmp变量,大家觉得可能吗?
我用exescope看那个vc动态链接库的原型是:
function sendMsg(comPort:BSTR; bmp:^UI1; address:variant; bmpLength:variant);
那个^UI1在vc中好像是safearray,在delphi中怎么处理呢?
有一个VC编写的动态链接库,同时也是一个OLE,我在系统注册后,在delphi7中用Import Library安装上了这个ACTIVEX,其中有这么一个函数:
procedure sendMsg(const comPort: WideString; var bmp: byte; address: OleVariant; bmpLength: OleVariant);
现在需要将一幅图片(大小:320×32象素 24位)传给那个bmp变量,大家觉得可能吗?
我用exescope看那个vc动态链接库的原型是:
function sendMsg(comPort:BSTR; bmp:^UI1; address:variant; bmpLength:variant);
那个^UI1在vc中好像是safearray,在delphi中怎么处理呢?