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);
誰か助けてください!!!!!!!!!!!!!!!!!!!!