C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: question about Component Object Model(COM)

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
John Harrison
Guest





PostPosted: Sat Jun 28, 2003 1:57 pm    Post subject: Re: question about Component Object Model(COM) Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.