 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
John Harrison Guest
|
Posted: Sat Jun 28, 2003 1:57 pm Post subject: Re: question about Component Object Model(COM) |
|
|
"Nick" <nick.bbs (AT) ntust (DOT) org> wrote
| Quote: |
excuse me! may i ask a problem of COM here?
|
Not really, this group is for standard C++ only, But it doesn't look like a
COM question to me.
| Quote: |
if i define a interface below:
HRESULT functionName([out,retval] bool* retval);
how do i get return value in main program
case 1
bool variable;
functionName(&variable) //return value in variable
|
This is right.
| Quote: |
case 2 bool T_F = finctionName(); //return value in T_F
|
This is wrong and won't compile.
| Quote: |
which case is right or another way?
|
Both examples miss out the interface pointer.
MyInterface* itf;
// get the interface pointer somehow
bool variable;
itf->functionName(&variable);
john
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|