Click here to Skip to main content
16,017,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Initial size of CFormView based app Pin
Woody Green8-Aug-02 1:32
Woody Green8-Aug-02 1:32 
GeneralRe: Initial size of CFormView based app Pin
nss8-Aug-02 5:26
nss8-Aug-02 5:26 
GeneralSend & retrieve data from dialog box to CDoc or CView Pin
Zayax7-Aug-02 21:08
Zayax7-Aug-02 21:08 
GeneralRe: Send & retrieve data from dialog box to CDoc or CView Pin
[James Pullicino]7-Aug-02 21:42
[James Pullicino]7-Aug-02 21:42 
GeneralRe: Send & retrieve data from dialog box to CDoc or CView Pin
RalfPeter8-Aug-02 3:44
RalfPeter8-Aug-02 3:44 
GeneralRe: Send & retrieve data from dialog box to CDoc or CView Pin
brianwelsch8-Aug-02 3:16
brianwelsch8-Aug-02 3:16 
GeneralRe: Send & retrieve data from dialog box to CDoc or CView Pin
Zayax8-Aug-02 16:14
Zayax8-Aug-02 16:14 
GeneralReference Counting problem Pin
Anonymous7-Aug-02 20:40
Anonymous7-Aug-02 20:40 
For using Smart Pointer, it'll handle all reference counting for me. However, for some cases, I couldn't use it.

Can anyone tell me the following functions if AddRef() is called automatically, or I should call it explicitly.

1. CComObject<t>::CreateInstance()
2. CComObject<t>::QueryInstance()
3. CoCreateInstance()
4. SmartPtr->CreateInstance() -- (i supposed addref-ed auto)
5. SmartPtr->QueryInterface() -- (i supposed addref-ed auto)
6. pUnknown->QueryInterface()

I see from many samples, the codes are just called CoCreateInstance() or pUnknown->QueryInterface() to return the pointer directly without calling AddRef(). It will do automatically ?
GeneralRe: Reference Counting problem Pin
Paul M Watt7-Aug-02 21:00
mentorPaul M Watt7-Aug-02 21:00 
GeneralRe: Reference Counting problem Pin
Anonymous8-Aug-02 0:40
Anonymous8-Aug-02 0:40 
GeneralRe: Reference Counting problem Pin
Paul M Watt9-Aug-02 8:55
mentorPaul M Watt9-Aug-02 8:55 
GeneralDll Registration Pin
abhinarulkar7-Aug-02 20:09
abhinarulkar7-Aug-02 20:09 
GeneralRe: Dll Registration Pin
Paul M Watt7-Aug-02 21:04
mentorPaul M Watt7-Aug-02 21:04 
Questionhow can i get current PC's ip? Pin
zecodela7-Aug-02 19:56
zecodela7-Aug-02 19:56 
AnswerRe: how can i get current PC's ip? Pin
Dudi Avramov7-Aug-02 21:07
Dudi Avramov7-Aug-02 21:07 
Generaladding named item to script engine Pin
Anonymous7-Aug-02 19:38
Anonymous7-Aug-02 19:38 
GeneralRe: adding named item to script engine Pin
Stuart Dootson7-Aug-02 19:56
professionalStuart Dootson7-Aug-02 19:56 
GeneralADO connection String Pin
unknown soldier7-Aug-02 19:33
unknown soldier7-Aug-02 19:33 
GeneralRe: ADO connection String Pin
Michael P Butler7-Aug-02 22:01
Michael P Butler7-Aug-02 22:01 
GeneralWindows Fonts problem Pin
Shamoon7-Aug-02 18:34
Shamoon7-Aug-02 18:34 
GeneralBitMapInfoHeader question. Pin
nss7-Aug-02 18:34
nss7-Aug-02 18:34 
GeneralRe: BitMapInfoHeader question. Pin
Chris Losinger7-Aug-02 18:39
professionalChris Losinger7-Aug-02 18:39 
Generaldynamic popup menu Pin
bryce7-Aug-02 18:32
bryce7-Aug-02 18:32 
GeneralRe: dynamic popup menu Pin
Chris Losinger7-Aug-02 18:45
professionalChris Losinger7-Aug-02 18:45 
GeneralRe: dynamic popup menu Pin
bryce7-Aug-02 18:49
bryce7-Aug-02 18:49 

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.