Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / CORBA / April 2004

Tip: Looking for answers? Try searching our database.

including interface from another IDL

Thread view: 
Juha Rossi - 08 Apr 2004 09:08 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.