Click here to Skip to main content
16,012,759 members
Home / Discussions / COM
   

COM

 
QuestionAnybody has any example of automating folders/contacts in outlook??? Pin
LukeV13-Aug-02 2:20
LukeV13-Aug-02 2:20 
AnswerRe: Anybody has any example of automating folders/contacts in outlook??? Pin
LukeV13-Aug-02 2:58
LukeV13-Aug-02 2:58 
QuestionCOM API ???? Pin
Ayyaz10-Aug-02 0:48
Ayyaz10-Aug-02 0:48 
AnswerRe: COM API ???? Pin
Giles10-Aug-02 2:03
Giles10-Aug-02 2:03 
AnswerRe: COM API ???? Pin
Anonymous14-Aug-02 7:32
Anonymous14-Aug-02 7:32 
Generalvector of smart pointers Pin
Jeremy Pullicino8-Aug-02 21:48
Jeremy Pullicino8-Aug-02 21:48 
GeneralRe: vector of smart pointers Pin
NormDroid10-Aug-02 0:56
professionalNormDroid10-Aug-02 0:56 
GeneralRe: vector of smart pointers Pin
Paul M Watt15-Aug-02 20:11
mentorPaul M Watt15-Aug-02 20:11 
You are perfectly fine to use smart pointers in the STL containers. The only caveat is that you should wrap these smart pointers in the CAdapt object like this:

vector<cadapt<imessageptr> >

This is because smart pointers implement the operator& which is needed by STL to refernce the object that is contained with in the containers. The SmartPointers user the operator& to access the interface instead. The CAdapt class will allow you to get around that problem and use the smart pointers safely.

If you have "ATL internals" by Rector and Sells, there is a good section on this in the chapter about containers.




Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralIShellView without creating a namespace Pin
Jonatan Dahl8-Aug-02 15:24
Jonatan Dahl8-Aug-02 15:24 
Generaltype mismatch Pin
Lily188-Aug-02 4:06
Lily188-Aug-02 4:06 
GeneralRe: type mismatch Pin
Anonymous15-Aug-02 17:02
Anonymous15-Aug-02 17:02 
GeneralIContextMenu copy in app to Explorer Pin
Null_Vector7-Aug-02 14:26
Null_Vector7-Aug-02 14:26 
GeneralRe: IContextMenu copy in app to Explorer Pin
Null_Vector9-Aug-02 0:24
Null_Vector9-Aug-02 0:24 
Generalneed help for CoInitializeEx(..) Pin
Jawid7-Aug-02 5:23
Jawid7-Aug-02 5:23 
GeneralRe: need help for CoInitializeEx(..) Pin
Mark Janveaux7-Aug-02 13:03
Mark Janveaux7-Aug-02 13:03 
GeneralPassing an interface through an ATL interface Pin
HawkSoftware6-Aug-02 10:36
HawkSoftware6-Aug-02 10:36 
GeneralRe: Passing an interface through an ATL interface Pin
Mark Janveaux6-Aug-02 13:01
Mark Janveaux6-Aug-02 13:01 
GeneralRe: Passing an interface through an ATL interface Pin
HawkSoftware6-Aug-02 15:46
HawkSoftware6-Aug-02 15:46 
GeneralRe: Passing an interface through an ATL interface Pin
Mark Janveaux6-Aug-02 17:45
Mark Janveaux6-Aug-02 17:45 
GeneralAdding MFC to existing COM Server DLL Pin
b_p_smith6-Aug-02 4:23
b_p_smith6-Aug-02 4:23 
GeneralRe: Adding MFC to existing COM Server DLL Pin
Anonymous7-Aug-02 23:59
Anonymous7-Aug-02 23:59 
GeneralRe: Adding MFC to existing COM Server DLL Pin
b_p_smith8-Aug-02 3:30
b_p_smith8-Aug-02 3:30 
GeneralRe: Adding MFC to existing COM Server DLL Pin
Vi29-Aug-02 1:36
Vi29-Aug-02 1:36 
GeneralReturning a dispinterface from VC to VB Pin
Jon Taylor5-Aug-02 11:06
Jon Taylor5-Aug-02 11:06 
GeneralRe: Returning a dispinterface from VC to VB Pin
Vi26-Aug-02 2:14
Vi26-Aug-02 2:14 

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.