我在CORBA服务器端实现了这样一个Get函数用于EXE文件的传输,结果怎么老出错,在CORBA中数据类型到底应该怎样转换?请高手指点。function TIFileTransCorba.Get ( const fileName : WideString): Any;
var
fs: TFileStream;
size: Longint;
strName: String;
v: Any;
begin
strName:=ExtractFilePath(Application.ExeName)+fileName;
fs:=TFileStream.Create(strName, fmOpenRead);
fs.Read(v, fs.Size);
Result:=v;
fs.Free;
end;
var
fs: TFileStream;
size: Longint;
strName: String;
v: Any;
begin
strName:=ExtractFilePath(Application.ExeName)+fileName;
fs:=TFileStream.Create(strName, fmOpenRead);
fs.Read(v, fs.Size);
Result:=v;
fs.Free;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货