Unsatisfied forward or external declaration: 'TForm1.GetTcpUdpInfo'
我在定义过程GetTcpUdpInfo的时候,编译时出现上面的错误,请问是怎么回事呢?
public
{ Public declarations }
procedure GetTcpUdpInfo
//Get the tcp/udp info
定义的过程如下,有省略
procedure TForm1.GetTcpUdpInfo()
//Get the tcp/udp info
var
TcpInfoTable, UdpInfoTable: TTcpInfo;
hTrapEvent: THandle;
hIdentifier, Oid: TAsnObjectIdentifier;
VarBindList: TSnmpVarBindList;
VarBind: TSnmpVarBind;
errorStatus, errorIndex: TAsnInteger32;
currentEntry, newEntry: PTcpInfo;
currentIndex: UINT;
localaddr, localport, remoteaddr,remoteport: string;
begin
Application.ProcessMessages;
if not SnmpExtensionInit(GetTickCount, @hTrapEvent, @hIdentifier) then Exit;
{ TCP connections }
FillChar(Oid, SizeOf(Oid), 0);
FillChar(VarBindList, SizeOf(VarBindList), 0);
FillChar(VarBind, SizeOf(VarBind), 0);
.......