Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralYahoo client.. Pin
RobJones1-Mar-04 10:03
RobJones1-Mar-04 10:03 
General#include <iostream.h> Pin
Anonymous1-Mar-04 8:59
Anonymous1-Mar-04 8:59 
GeneralRe: #include <iostream.h> Pin
User 66581-Mar-04 9:42
User 66581-Mar-04 9:42 
GeneralRe: #include &lt;iostream.h&gt; Pin
John M. Drescher1-Mar-04 9:50
John M. Drescher1-Mar-04 9:50 
GeneralRe: #include &lt;iostream.h&gt; Pin
Prakash Nadar1-Mar-04 15:18
Prakash Nadar1-Mar-04 15:18 
Generalcasting problem Pin
Mazdak1-Mar-04 8:34
Mazdak1-Mar-04 8:34 
GeneralRe: casting problem Pin
John M. Drescher1-Mar-04 8:52
John M. Drescher1-Mar-04 8:52 
GeneralRe: casting problem Pin
Mazdak1-Mar-04 9:14
Mazdak1-Mar-04 9:14 
GeneralRe: casting problem Pin
John M. Drescher1-Mar-04 9:49
John M. Drescher1-Mar-04 9:49 
GeneralRe: casting problem Pin
Mazdak1-Mar-04 10:11
Mazdak1-Mar-04 10:11 
Generala menu Pin
Anonymous1-Mar-04 8:10
Anonymous1-Mar-04 8:10 
GeneralRe: a menu Pin
Wes Aday1-Mar-04 8:17
professionalWes Aday1-Mar-04 8:17 
Generalvisual c++ Pin
vglmco1-Mar-04 7:28
vglmco1-Mar-04 7:28 
GeneralRe: visual c++ Pin
John M. Drescher1-Mar-04 7:37
John M. Drescher1-Mar-04 7:37 

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.