Dear all,
Im using idlj.exe that comes with sdk 1.4.2 on WinXP.
I have 2 idl files, and I try to "reuse"/include interface following way:
//-------------------------
// FirstIDL.ild
#include <SecondIDL.idl>
module FirstMod
{
interface First
{
Second getSecondObject();
// ABOVE LINE GIVES ERROR !!!
}
}
//-------------------------
// SecondIDL.ild
module SecondMod
{
interface Second
{
string getSomething();
}
}
//-------------------------
FirstIDL.idl and SecondIDL.idl are in same directory and I use
following command:
C:\>"c:\Program Files\j2sdk_nb\j2sdk1.4.2\bin\idlj.exe" -fserver -
fclient -oldImplBase -i . FirstIDL.idl
ERROR IS:
FirstIDL.idl (line 7): Second is an undeclared type.
Second getSecondObject();
Please help!!!
Thanks in advance
Juha Rossi
Piet van Oostrum - 08 Apr 2004 13:55 GMT
>>>>> juhar@evitech.fi (Juha Rossi) (JR) wrote:
JR> Dear all,
JR> Im using idlj.exe that comes with sdk 1.4.2 on WinXP.
JR> I have 2 idl files, and I try to "reuse"/include interface following way:
JR> //-------------------------
JR> // FirstIDL.ild
JR> #include <SecondIDL.idl>
JR> module FirstMod
JR> {
JR> interface First
JR> {
JR> Second getSecondObject();
JR> // ABOVE LINE GIVES ERROR !!!
JR> }
JR> }
JR> //-------------------------
JR> // SecondIDL.ild
JR> module SecondMod
JR> {
JR> interface Second
JR> {
JR> string getSomething();
JR> }
JR> }
JR> //-------------------------
1. Add ; after the }
2. Use SecondMod::Second in FirstIDL.idl

Signature
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl