===VC++ ================================================================
#undef LPTSTR
typedef BYTE RSI_ID[5];RSI_DLL RSI_DATA_ERROR RSI_API rsiTextToID(LPCTSTR text, RSI_ID id);
RSI_DLL RSI_DATA_ERROR RSI_API rsiIDToText(RSI_ID id, LPTSTR text);
===Delphi================================================================
Type RSI_ID=record
b0 : Byte;
b1 : Byte;
b2 : Byte;
b3 : Byte;
b4 : Byte;
end;
Function rsiIDToText(ID:RSI_ID;text:pchar) :RSI_DATA_ERROR; stdcall; external 'rsidll32.dll';
Function rsiTextToID(text:pchar;ID:RSI_ID) :RSI_DATA_ERROR; stdcall; external 'rsidll32.dll';这样总是会出现地址错误??
var
id:RSI_ID;
str_id:pchar;
begin
Result:= rsiIDToText(ur.ID,str_id);
end;
在delphi里要怎样定义和怎样调用呢?
#undef LPTSTR
typedef BYTE RSI_ID[5];RSI_DLL RSI_DATA_ERROR RSI_API rsiTextToID(LPCTSTR text, RSI_ID id);
RSI_DLL RSI_DATA_ERROR RSI_API rsiIDToText(RSI_ID id, LPTSTR text);
===Delphi================================================================
Type RSI_ID=record
b0 : Byte;
b1 : Byte;
b2 : Byte;
b3 : Byte;
b4 : Byte;
end;
Function rsiIDToText(ID:RSI_ID;text:pchar) :RSI_DATA_ERROR; stdcall; external 'rsidll32.dll';
Function rsiTextToID(text:pchar;ID:RSI_ID) :RSI_DATA_ERROR; stdcall; external 'rsidll32.dll';这样总是会出现地址错误??
var
id:RSI_ID;
str_id:pchar;
begin
Result:= rsiIDToText(ur.ID,str_id);
end;
在delphi里要怎样定义和怎样调用呢?
解决方案 »
- image写入SQL语句
- 怎样编写SQL语句让dbgrid中显示小数位数?
- DBGRID 输出3列,我坐一个打印按钮,一按就直接找到默认的打印机打印~高分,在线等
- 请问,将一个数据表中的一条记录整条复制到另外一个数据表中,怎么写?
- 如何实现网络间文件的拷贝?
- 如何将两个TShape做成一个组件?
- 一个关于image的问题?
- 有谁知道代码大全
- 我用adoquery执行sql语句的delete后,怎样将做了删除标记的记录物理删除?(local dbf表,不使用BDE,昨天没有解决)
- 高手帮忙!---如何调用外部程序发email?
- 有没有输入XML和XSL文件输出HTML结果的控件?
- Active Form 能使用TDataModule嗎?
原形: RSI_DATA_ERROR rsiIDToText(RSI_ID id, LPTSTR text);
参数: RSI_ID id: 一个 BCD 格式的使用者 ID 的数据结构LPTSTR
text:一个将会接收使用者 ID 正文字符串的指针
功能: 将一个 BCD 格式的使用者 ID 转换为一个正文格式的使用者 ID
返回: RSI_DATA_OK:成功由 rsiGetDataError 返回的错误值:失败text参数是指针。要怎么定义才行?