我在 IDL corba 中遇到了数组和对象的问题这是我的代码:
interface ISinhVien
{
SinhVien[] DocFile(in String filename);
void GhiFile(in SinhVien[] sv,in String filename);
};
编译时出错:
CORBA_SinhVien>idlj -fall SinhVienIDL.idl
SinhVienIDL.idl (line 3): SinhVien is an undeclared type.
SinhVien[] DocFile(in String filename);
^
SinhVienIDL.idl (line 3): Expected `<identifier>'; encountered `['.
SinhVien[] DocFile(in String filename);
^
SinhVienIDL.idl (line 3): WARNING: Identifier `String' collides with a keyword;
use an escaped identifier to ensure future compatibility.
SinhVien[] DocFile(in String filename);
^
SinhVienIDL.idl (line 4): SinhVien is an undeclared type.
void GhiFile(in SinhVien[] sv,in String filename);
^
SinhVienIDL.idl (line 4): Expected `<identifier>'; encountered `['.
void GhiFile(in SinhVien[] sv,in String filename);
^
SinhVienIDL.idl (line 4): WARNING: Identifier `String' collides with a keyword;
use an escaped identifier to ensure future compatibility.
void GhiFile(in SinhVien[] sv,in String filename);
有人帮帮我,拜托!!!!!!!!!!!!!!!!!!!!!