为什么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;
为什么啊
[解决办法]
有什么错?。。