×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How do I pass a char** in IDL

How do I pass a char** in IDL

How do I pass a char** in IDL

(OP)
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);
  };
};


RE: How do I pass a char** in IDL

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close