Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNeed Help Fast! Conditionals Pin
SeanP2841-Mar-04 14:56
SeanP2841-Mar-04 14:56 
GeneralRe: Need Help Fast! Conditionals Pin
Anonymous1-Mar-04 16:18
Anonymous1-Mar-04 16:18 
GeneralRe: Need Help Fast! Conditionals Pin
Daniel Turini1-Mar-04 19:32
Daniel Turini1-Mar-04 19:32 
GeneralRe: Need Help Fast! Conditionals Pin
David Crow2-Mar-04 10:18
David Crow2-Mar-04 10:18 
GeneralEnumerated types Pin
satcat1-Mar-04 13:05
satcat1-Mar-04 13:05 
GeneralRe: Enumerated types Pin
Prakash Nadar1-Mar-04 14:51
Prakash Nadar1-Mar-04 14:51 
QuestionVersion writing APIs? Pin
Ravi Bhavnani1-Mar-04 12:55
professionalRavi Bhavnani1-Mar-04 12:55 
AnswerRe: Version writing APIs? Pin
Prakash Nadar1-Mar-04 14:53
Prakash Nadar1-Mar-04 14:53 
GeneralRe: Version writing APIs? Pin
Steve S1-Mar-04 22:28
Steve S1-Mar-04 22:28 
GeneralRe: Version writing APIs? Pin
Ravi Bhavnani2-Mar-04 2:47
professionalRavi Bhavnani2-Mar-04 2:47 
GeneralRe: Version writing APIs? Pin
Steve S2-Mar-04 6:36
Steve S2-Mar-04 6:36 
GeneralSuper Easy C++ program help Pin
Joe Estes1-Mar-04 12:51
Joe Estes1-Mar-04 12:51 
GeneralRe: Super Easy C++ program help Pin
Anonymous1-Mar-04 16:03
Anonymous1-Mar-04 16:03 
GeneralRe: Super Easy C++ program help Pin
Prakash Nadar1-Mar-04 18:53
Prakash Nadar1-Mar-04 18:53 
Generalmfc and win32 Pin
vglmco1-Mar-04 11:46
vglmco1-Mar-04 11:46 
GeneralRe: mfc and win32 Pin
l a u r e n1-Mar-04 12:05
l a u r e n1-Mar-04 12:05 
GeneralRe: mfc and win32 Pin
Prakash Nadar1-Mar-04 14:47
Prakash Nadar1-Mar-04 14:47 
GeneralRe: mfc and win32 Pin
vglmco2-Mar-04 4:18
vglmco2-Mar-04 4:18 
GeneralRe: mfc and win32 Pin
Diddy2-Mar-04 11:14
Diddy2-Mar-04 11:14 
GeneralRe: mfc and win32 Pin
Diddy3-Mar-04 12:39
Diddy3-Mar-04 12:39 
GeneralCComPtr and CDHtmlDialog Pin
George L. Jackson1-Mar-04 11:44
George L. Jackson1-Mar-04 11:44 
GeneralRe: CComPtr and CDHtmlDialog Pin
Diddy2-Mar-04 11:19
Diddy2-Mar-04 11:19 
Thats fine.

The assignment operator for CComPtr will call AddRef for you, or in this case take an assigment from the underyling IUnknown of pOption and do a QueryInterface on it for you - which in tern does the AddRef.

When using the assingment operators you should always check the assinged pointer for NULL as this is the only way CCom(QI)Ptr has to report any failure code for you - unlike when you call QI manually and you get your HRESULT back
GeneralColor of DialogBox (Looking for macro) Pin
eigen1-Mar-04 11:40
eigen1-Mar-04 11:40 
GeneralRe: Color of DialogBox (Looking for macro) Pin
Ravi Bhavnani1-Mar-04 11:50
professionalRavi Bhavnani1-Mar-04 11:50 
GeneralCreateDispatch and globalalloc Pin
vancouver7771-Mar-04 10:14
vancouver7771-Mar-04 10: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.