dcsimg
IDL compilation problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kevin_Tan
Posted On:   Friday, March 23, 2001 01:41 AM

IDL: #include "Object.idl" module DataQuery { struct d_getDataInfo { string ip; string jdbcDriver; string jdbcUrl; string username;    More>>
































IDL:

#include "Object.idl"

module DataQuery

{

struct d_getDataInfo

{

string ip;

string jdbcDriver;


string jdbcUrl;

string username;

string password;

};

interface d_Database

{

void setDatabase(in string
driver, in string user, in string pw, in string url);

java::lang::Object getDatabase();


};

};



File Object.idl:

module java{

module lang{

extensible struct Object;

};

};

When i compile using the idltojava.exe

i have errors:

Warning:Unexpected preprocessor directive:#include "Object.idl"

idl:25:name 'java' not declares
idltojava:aborted due to earlier errors

Pls help.

Thanx.    <<Less

Re: IDL compilation problem

Posted By:   Larry_Mello  
Posted On:   Tuesday, April 10, 2001 09:47 PM

Is there a particular reason you don't want to use the 'any' IDL datatype? It is the generic type in IDL and would serve your needs well in this case. any maps to org.omg.CORBA.Any.

Your IDL would look like:

module DataQuery {


struct d_getDataInfo {


string ip;


string jdbcDriver;


string jdbcUrl;


string username;


string password;


};


interface d_Database {


void setDatabase(in string driver, in string user, in string pw, in string url);


any getDatabase();


};


};


Larry
About | Sitemap | Contact