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!

Passing implementation objects as parameters

Status
Not open for further replies.

cuaji

Programmer
Jan 30, 2002
10
0
0
ES
I'd like to pass an object as parameter. For example, If I make this interface:

/////////////////////////////////////////////
//Define the MyClass class
#include "myclass.idl"

interface sample
{
void MyFunction(in MyClass my_object);
}
/////////////////////////////////////////////

, the generated code for the function looks like this:

void sample::MyFunction(MyClass_ptr my_object);

However, I needn't a MyClass_ptr (pointer to MyClass) type parameter; I would like
a MyClass_i (implementation) parameter, because my code is added on the implementation class.

How can I solve this?

Finally, I need the same function but with out-parameters (out MyClass in this case).

Thanx,

Demetrio
Spain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top