如何解决 0XCB等MAC地址不能转换为字符串并显示出来的问题?
想通过MIB取得本机MAC并显示出来.
response:string;
response已经取得的值为#0#0#1#1#0#0#0#0 response=#0#0#1#1#0#0#0#0
或者是#0#3 'G '#$CB response=#0#3 'G '#$CB
但memo1.lines.add(response);却不能显示出来.
请高手指点.
[解决办法]
var
response:string;
outs:string;
x:integer;
begin
response:=#0#3 'G '#$CB;
outs:= ' ';
for x:=1 to Length(response) do
outs:= outs+format( '%.2x ',[Ord(response[x])]);
ShowMessage(outs);
end;
[解决办法]
#0#3 都是不可见字符