delphi 调用 vc dll 问题
我调用vc的dll,传送结构体参数。vc接受后从内存中拷贝出我传送的值。转换之后是乱码
结构体怎么定义的?
//向终端发送门禁报警信息
function alarmSentDoor(var pDoorPara :Alley_ALARM_PARA):boolean;stdcall;external 'warnerdll.dll';
结构体定义
Door_ALARM_PARA = record
cAlarmTime : array[0..MAX_ALARM_TIME_LEN] of char; //报警时间
cDoorID : array[0..MAX_ALLEY_ID_LEN] of char; //报警门号
cCause : array[0..MAX_ALARM_CAUSE_LEN] of char; //报警原因
end;
如需要阅读该回复,请登录或注册CSDN!
相关问答:
已知Python 中:
s = unicode("测试", "gb2312")
s = u'\u6d4b\u8bd5'
print s
测试
在Delphi里面如何将\u6d4b\u8bd5这样的还原成Gb2312的汉字呢?
找到个方法
......
原文地址:http://hi.baidu.com/sqldebug/blog/item/58a764624a44d74eeaf8f863.html
一、如何限制系统服务和桌面程序只运行一个
如何限制系统服务和桌面程序只运行一个
在工程加入下列代码可以 ......
[size=18px]var s,n:integer;
begin
write('输入变长的条数n');
readln(n);
[color=#FF0000]s:=n*(n-1)*(n-2)div 6; //本行替换为s:=n*(n-1)*(n-2)/ ......
我想将c#写的控件嵌到Delphi7的Form中显示,但是始终是没坐成,我通过导入tlb文件,可以通过c#写的接口,实现在Delphi中显示一个窗体,但是显示的只是在桌面上浮动的窗体,无法将他的父容器指定为Delphi的Form,我想 ......
project project3.exe raised exception class ERemotableException with message 'access violation at address 004037B in module'project2.exe'.read of address 00000003'.process stopped.use ......