Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I pass a char** in IDL

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
0
0
GB
I'm new to IDL and have not had much luck finding a good tutorial online.

If I have a simple C client program:-

int main(int argc, char **argv) {
...
return(0);
}

How do I declare the interface in IDL?

I've tried the following but it gives the following error:
test.idl: 4:syntax error after string
test.idl: 4:expected one of: <, identifier
test.idl: 4:instead of *

module mymodule {
interface myinterface {
long myoperation(in long a, in string **b);
};
};


 
passing of char** through IDL does not make sence, because it could be used only inside the same thread or process, so if you would like to pass an array of strings, you should pass sequence of strings:

typedef sequence<string> sq_strings;
long myoperation(in long a, in sq_strings b);

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top