首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

为啥dll里面不能访问网络呢

2013-11-09 
为什么dll里面不能访问网络呢?function test():Pcharstdcallvarstr:Pcharcontent:stringTmpHttp: TIdH

为什么dll里面不能访问网络呢?
function test():Pchar;stdcall;
var
  str:Pchar;
  content:string;
  TmpHttp: TIdHTTP;
begin
TmpHttp := TIdHTTP.Create(nil);
try
content:=Trim(TmpHttp.Get('http://www.baidu.com'));
except
end;
str:=PChar(content);
Result:=str;
end;

为什么啊
[解决办法]
有什么错?。。

热点排行