Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create a Button array ........ Pin
Vistac1-Apr-01 19:31
Vistac1-Apr-01 19:31 
AnswerRe: How to create a Button array ........ Pin
Erik Thompson1-Apr-01 21:36
sitebuilderErik Thompson1-Apr-01 21:36 
GeneralRe: How to create a Button array ........ Pin
Vistac2-Apr-01 6:17
Vistac2-Apr-01 6:17 
GeneralRe: How to create a Button array ........ Pin
Erik Thompson2-Apr-01 6:23
sitebuilderErik Thompson2-Apr-01 6:23 
GeneralBest way to write a drawing tool? (AKA The nightmare of windowless ActiveX) Pin
Brendan Tregear1-Apr-01 18:56
Brendan Tregear1-Apr-01 18:56 
GeneralRe: Best way to write a drawing tool? (AKA The nightmare of windowless ActiveX) Pin
Christian Graus1-Apr-01 19:09
protectorChristian Graus1-Apr-01 19:09 
GeneralThanks. You've given me the energy to give it another shot :) (n/t) Pin
Brendan Tregear2-Apr-01 14:12
Brendan Tregear2-Apr-01 14:12 
QuestionWhat this means?! Pin
webman011-Apr-01 18:40
webman011-Apr-01 18:40 
look at following code:


STDMETHODIMP CADOTier::OpenRecordset(VARIANT query)
{
VARIANT v;
V_VT(&v) = VT_DISPATCH;
V_DISPATCH(&v) = (IDispatch*) m_connection;

// Need the AddRef() as VariantClear() calls Release(), unless fAddRef
// false indicates we're taking ownership
//
V_DISPATCH(&v)->AddRef();

return m_recordset->Open(query, v, adOpenDynamic, adLockOptimistic, adCmdText);
}

It is a method Implementation of a COM object. It uses another COM object method "open" to open a recordset with a parameter of IDispatch interface type passed--v.
But who can tell me why I must call V_DISPATCH(&v)->AddRef() to increase reference count and where the reference count will decreased?
(VariantClear ? But not find here)

TKS
GeneralArray copying Pin
1-Apr-01 17:39
suss1-Apr-01 17:39 
GeneralRe: Array copying Pin
Christian Graus1-Apr-01 17:50
protectorChristian Graus1-Apr-01 17:50 
GeneralChanging the clock text Pin
Greg Hedlund1-Apr-01 16:41
Greg Hedlund1-Apr-01 16:41 
GeneralGetVolumeInformation Pin
paulb1-Apr-01 15:52
paulb1-Apr-01 15:52 
GeneralSupport MultiLanguage in VC Pin
hs1-Apr-01 15:29
hs1-Apr-01 15:29 
GeneralRe: Support MultiLanguage in VC Pin
Masaaki Onishi1-Apr-01 16:02
Masaaki Onishi1-Apr-01 16:02 
GeneralMy problem is: Pin
hs1-Apr-01 16:35
hs1-Apr-01 16:35 
GeneralRe: My problem is: Pin
Masaaki Onishi1-Apr-01 17:56
Masaaki Onishi1-Apr-01 17:56 
GeneralRe: Support MultiLanguage in VC Pin
l a u r e n2-Apr-01 6:45
l a u r e n2-Apr-01 6:45 
GeneralRe: Support MultiLanguage in VC Pin
Masaaki Onishi2-Apr-01 7:08
Masaaki Onishi2-Apr-01 7:08 
Generaldot operator menu... Pin
Cam1-Apr-01 15:28
Cam1-Apr-01 15:28 
GeneralRe: dot operator menu... Pin
Christian Graus1-Apr-01 17:07
protectorChristian Graus1-Apr-01 17:07 
Generaltry / catch : not compiled && unreachable in release build. Pin
Matt Cooper1-Apr-01 14:54
Matt Cooper1-Apr-01 14:54 
GeneralRe: try / catch : not compiled && unreachable in release build. Pin
Tim Deveaux2-Apr-01 6:54
Tim Deveaux2-Apr-01 6:54 
GeneralRe: try / catch : Oops - fogot something... Pin
Tim Deveaux2-Apr-01 13:33
Tim Deveaux2-Apr-01 13:33 
GeneralRe: try / catch Pin
Matt Cooper2-Apr-01 19:54
Matt Cooper2-Apr-01 19:54 
GeneralRe: try / catch Pin
Tim Deveaux3-Apr-01 13:45
Tim Deveaux3-Apr-01 13:45 

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.