Click here to Skip to main content
15,911,896 members
Home / Discussions / COM
   

COM

 
QuestionWhich C# Book is the best for Intermediete programmer. Pin
karam chandrabose10-Dec-06 20:29
karam chandrabose10-Dec-06 20:29 
AnswerRe: Which C# Book is the best for Intermediete programmer. Pin
karam chandrabose10-Dec-06 22:21
karam chandrabose10-Dec-06 22:21 
GeneralRe: Which C# Book is the best for Intermediete programmer. Pin
Hamid_RT5-Jan-07 21:43
Hamid_RT5-Jan-07 21:43 
Question_variant_t Question Pin
Gupta Suraj7-Dec-06 22:48
Gupta Suraj7-Dec-06 22:48 
GeneralRe: _variant_t Question Pin
prasad_som7-Dec-06 23:02
prasad_som7-Dec-06 23:02 
GeneralRe: _variant_t Question Pin
Gupta Suraj7-Dec-06 23:26
Gupta Suraj7-Dec-06 23:26 
AnswerRe: _variant_t Question Pin
prasad_som8-Dec-06 1:49
prasad_som8-Dec-06 1:49 
GeneralRe: _variant_t Question Pin
Gupta Suraj8-Dec-06 3:26
Gupta Suraj8-Dec-06 3:26 
Thanks Prasad...

Actually,pICustom is a smart pointer. So when "vtSample(pICustom)" is executed, bool operator of _com_ptr template class is called. What I think is that the best matching constructor of _variant_t class is that which takes a bool as its paramter.So first bool operator of _com_ptr is called to convert the parameter to bool.

We don't have a overloaded constructor of _variant_t class which takes smart pointer as its parameter.

Please send your comment on this. Am i thinking in right direction?


Suraj.

Suraj Gupta

GeneralRe: _variant_t Question Pin
Ed Gadziemski8-Dec-06 18:29
professionalEd Gadziemski8-Dec-06 18:29 
GeneralRe: _variant_t Question Pin
Gupta Suraj10-Dec-06 17:44
Gupta Suraj10-Dec-06 17:44 
GeneralRe: _variant_t Question Pin
prasad_som10-Dec-06 21:29
prasad_som10-Dec-06 21:29 
GeneralRe: _variant_t Question Pin
Gupta Suraj11-Dec-06 18:28
Gupta Suraj11-Dec-06 18:28 
AnswerRe: _variant_t Question Pin
prasad_som11-Dec-06 19:22
prasad_som11-Dec-06 19:22 
GeneralRe: _variant_t Question Pin
Gupta Suraj11-Dec-06 19:36
Gupta Suraj11-Dec-06 19:36 
GeneralRe: _variant_t Question Pin
prasad_som11-Dec-06 19:51
prasad_som11-Dec-06 19:51 
QuestionAutomation, cross thread problem Pin
anderslundsgard6-Dec-06 21:36
anderslundsgard6-Dec-06 21:36 
AnswerRe: Automation, cross thread problem Pin
«_Superman_»6-Dec-06 22:50
professional«_Superman_»6-Dec-06 22:50 
AnswerRe: Automation, cross thread problem Pin
Roger Stoltz6-Dec-06 22:50
Roger Stoltz6-Dec-06 22:50 
AnswerRe: Automation, cross thread problem Pin
lafleon7-Dec-06 10:25
lafleon7-Dec-06 10:25 
GeneralRe: Automation, cross thread problem Pin
anderslundsgard7-Dec-06 2:40
anderslundsgard7-Dec-06 2:40 
GeneralRe: Automation, cross thread problem Pin
Roger Stoltz7-Dec-06 3:22
Roger Stoltz7-Dec-06 3:22 
GeneralRe: Automation, cross thread problem Pin
anderslundsgard7-Dec-06 4:01
anderslundsgard7-Dec-06 4:01 
GeneralRe: Automation, cross thread problem Pin
Roger Stoltz7-Dec-06 4:50
Roger Stoltz7-Dec-06 4:50 
QuestionCocreateInstance fails Pin
Shailesh Ha5-Dec-06 19:04
Shailesh Ha5-Dec-06 19:04 
AnswerRe: CocreateInstance fails Pin
prasad_som5-Dec-06 20:22
prasad_som5-Dec-06 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.