用DELPHI 写的Dll 里面的方法反回BOOLEAN值时,什么在VB中调时,结果都认为是TRUE?

LK007 2003-07-21 11:57:18
用DELPHI 写的Dll 里面的方法反回BOOLEAN值时,什么在VB中调时,结果都认为是TRUE?
...全文
37 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
baguli 2003-07-21
  • 打赏
  • 举报
回复
Boolean是Delphi自定义类型,如果在DLL中,建议将返回类型该为Integer或者LongBool
短信收发控件使用说明: Build 20040606(Beta 1)使用不能将控件直接放在窗体上,需要定义并自己创建,具体使用方法参看示例程序。控件只提供dcu文件。控件从SPComm继承,并且增加了短信收发功能,对于SPComm的相关属性和事件不在此进行说明,下面只介绍与短信相关的属性、方法和事件。Delphi 7下、wavecom 设备下调试通过。开发计划:1.解决直接放置在窗体上使用的问题。2.提供dll、OCX,供vb,vc等程序使用。3.提供源码(暂不提供,请不要联系索要)计划只是计划,看看有没有间,比竟还有工作...^_^一、属性1.AutoDeleteMsg:Boolean 自动删除短信如果设置为True,则在读取短信自动删除该短信,收到新短信读取后也自动删除。二、方法1.WriteCommDataAT(AT:String);发送AT命令,立即执行2.PushCommand(AT:String;ATType:Integer);将命令压入命令队列,由控件在设备空闲自动发出ATType备用,可任意整数3.SendSMS(PhoneNO:String;Msg:String): Integer;立即发送短信命令PhoneNO:手机号码Msg:短信内容4.PushSMS(SMSID:Integer;SMSPhoneNO,SMSMsg:String;SMSSendTime:TDatetime)将短信压入待发短信队列,牙控件在设备空闲自动发出SMSID:短信序列号,在控件的OnSMSSendOKEvent事件中将返回发送成功的SMSID,建议使用数据库中的ID字段进行标志PhoneNO:手机号码Msg:短信内容SMSSendTime:发送间,备用,为定发送而设5.SetOpenProcess(Value:Boolean);启动/停止命令执行,包括发送短信进程6.InitSMS(CenterNO:String);初始化短信设备,设置为PDU格式,并且初始化短信中心CenterN:短信中心号码,不带加号,如:86130101665007.GetCommandQueueCount: Integer;返回命令队列中待发命令个数8.GetSendQueueCount: Integer;返回命令队列中待发短信个数三、事件1.OnSMSNewEvent(PhoneNO,Msg,MsgTime:String);收到短信事件PhoneNO:手机号码Msg:短信内容MsgTime:收到间2.OnSMSSendOKEvent(ID:Integer);短信发送成功事件ID:发送成功短信索引,为在PushSMS中所设的SMSID作者保留所有权力。共享版在发送短信前会加上adsg@tom.com的信息! adsg http://www.tinsoftware.com adsg@Tom.com
Huge Integer Math and Encryption library. - A cryptography toolkit for Windows with public key and secret key encryption, data security and digital signatures with one-way secure hash functions. - Public (asymmetric) key encryption and digital signatures with RSA. Optional PKCS#1 v1.5 RSA padding. - Secret (symmetric) key encryption with AES (Rijndael) or ArcFour (RC4 compatible). - Hash functions: SHA-512, SHA-256, SHA-1, MD5, CRC32. - FIPS 198 HMAC. - Huge prime number generation, factoring and cryptographically secure random number generation (a.o. Blum-Blum-Shub). True random number data from an internet server. - Diffie-Hellman key exchange algorithm. - Compression / decompression with multiple compression algorithms. - Thread-safe for use in multi-threaded applications. - Functions for converting data between various formats: huge integer, Base64, decimal, hex, ascii binary. - Securely erasing disk files and free disk space. - Huge integer number mathematical, bit manipulation and boolean functions can serve as building blocks for implementing other public key encryption schemes or performing math calculations with arbitrary precision. - Number theory applications. - A huge integer number in HIME can be hundreds of millions of digits long; 2^31 (2147483648) bits long. MILLIONS of decimal digits! - HIME is a 32 bits dll. Every programming language that can access a standard Win32 dll can use HIME: C, C++, C#, Visual Basic 5/6, VB.Net, Delphi, PowerBASIC, PureBASIC, Liberty Basic, Euphoria, Java, Macromedia Director (with GLU32)... - .NET (dot NET) languages can use HIME as an 'unmanaged code dll'. - Demo and test programs (including their source code) to show HIMEs performance and as an example of how to use HIME. - Demo code in Visual Basic 5/6, C++, C#, VB.Net, Liberty Basic, Delphi, PowerBASIC and PureBASIC are also included. HIME was written in PowerBASIC (*) and inline assembler. HIME is designed to support all Windows versions.

16,749

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧