看到篇一个新的IP数据格式:ipwry
http://blog.csdn.net/cnss/archive/2004/10/14/ipwry.aspxipsearcher.dll新增了几个导出函数:
void* __cdecl GetAddressInt(unsigned int ip);
功能同_GetAddress,参数IP是整型而不是字符串,字节序为little-endian.
bool __cdecl Reload();
重新加载ipwry.dat,适用于网站统计程序不间断运行的升级IP数据.
unsigned int __cdecl IPCount();
返回有多少条IP
char* __cdecl DateTime();
返回数据生成的日期时间不知道这个:void* __cdecl GetAddressInt(unsigned int ip);函数怎么调用???
下面两个道会了.
function IPCount(): Integer; stdcall; external 'ipsearcher.dll';
function DateTime(): PChar; stdcall; external 'ipsearcher.dll';
http://blog.csdn.net/cnss/archive/2004/10/14/ipwry.aspxipsearcher.dll新增了几个导出函数:
void* __cdecl GetAddressInt(unsigned int ip);
功能同_GetAddress,参数IP是整型而不是字符串,字节序为little-endian.
bool __cdecl Reload();
重新加载ipwry.dat,适用于网站统计程序不间断运行的升级IP数据.
unsigned int __cdecl IPCount();
返回有多少条IP
char* __cdecl DateTime();
返回数据生成的日期时间不知道这个:void* __cdecl GetAddressInt(unsigned int ip);函数怎么调用???
下面两个道会了.
function IPCount(): Integer; stdcall; external 'ipsearcher.dll';
function DateTime(): PChar; stdcall; external 'ipsearcher.dll';
解决方案 »
- 如何集合成一行字符串?
- 新年好!找到excel的值,并确定该值所在的行和列
- 这个问题何解?在C/S的服务器端就不能写数据库吗? Delphi2009+Idtcpserver+Adoconnection
- 尖端问题,高手请进........................................
- 关于paradox编程,本人刚学delphi,很简单的
- 在线_初级问题:query1中使用参数时fastreport出错
- 应用程序调用一个已为另一线程整理的接口
- 求助:我想用程序重启Win2K![ 遇到了麻烦 ExitWindowsEx 无法实现] 绝对高手请进:!!详情...
- [求助]有关ADO在delphi和sql server 7使用上的问题。
- 在DELPHI5中怎样调用*.chm的帮助文件。在下深表感谢!!!
- 请问做报表用什么(第三方)控件好?
- 如何通过Indy的idsmtpserver构建邮件服务器,并实现此服务器到其它服务器的邮件发送?
procedure GetAddressInt(ip :Longint);cdecl;external 'ipsearcher.dll';
试了没反应???怪怪!
我这样调了一下,但反回来的是个乱码....
不懂呀!
你用UINT类型的参数来试试看!
你参数对了吗?
你传的是什么类型呢?
输入的是什么?
是int型吗?
function GetAddressInt(ip :Longint):Pointer;cdecl;external 'ipsearcher.dll';
...
Edit3.Text := string(GetAddressInt(3658823702));
这样没错吧?
(218*256*256*256)+(21*256*256)+(56*256)+(22)=3658823702