Re: question about Component Object Model(COM)



 DEVELOP > c-Plus-Plus > Re: question about Component Object Model(COM)

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: DEVELOP > c-Plus-Plus
User: "John Harrison"
Date: 28 Jun 2003 08:57:22 AM
Object: Re: question about Component Object Model(COM)
"Nick" <nick.bbs@ntust.org> wrote in message news:473hg9$NX4@ntust.org...


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.


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.


case 2 bool T_F = finctionName(); //return value in T_F

This is wrong and won't compile.


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
.

 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER