Click here to Skip to main content
15,890,506 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to determine if an ActiveX control is signed Pin
KKTECH23-Feb-06 18:41
KKTECH23-Feb-06 18:41 
GeneralRe: How to determine if an ActiveX control is signed [modified] Pin
Michael Dunn23-Feb-06 18:50
sitebuilderMichael Dunn23-Feb-06 18:50 
GeneralRe: How to determine if an ActiveX control is signed [modified] Pin
KKTECH27-Feb-06 1:27
KKTECH27-Feb-06 1:27 
QuestionActiveX to server communication Pin
vinodraut12-Feb-06 22:11
vinodraut12-Feb-06 22:11 
QuestionOutlook::_Application problem Pin
kotiramkoteswararao12-Feb-06 3:50
kotiramkoteswararao12-Feb-06 3:50 
Questionhow to COM class in another class Pin
kotiramkoteswararao11-Feb-06 7:52
kotiramkoteswararao11-Feb-06 7:52 
AnswerRe: how to COM class in another class Pin
Milton Karimbekallil11-Feb-06 17:54
Milton Karimbekallil11-Feb-06 17:54 
AnswerRe: how to COM class in another class Pin
Stephen Hewitt12-Feb-06 11:31
Stephen Hewitt12-Feb-06 11:31 
Mil's suggestion is sound but you'd have to take care the object is destroyed properly. He's the code he posted:
CComObject<CAddin>* pCAddin;<br />
CComObject<CAddin>::CreateInstance(&pCAddin);<br />
pCAddin->Add();


There's a trap here - the object is created with a reference count of zero. Since objects destroy themselves when the reference count is descremented to zero calling Release doesn't destory the object (since it decrements the reference count to -1). Using this code you would have to destroy the object as follows:
pCAddin->AddRef(); // Reference count 0->1<br />
pCAddin->Release();      // Reference count 1->0, object destroyed.


He's how I'd do it however:
CComObject<CAddin>* pCAddin;<br />
CComObject<CAddin>::CreateInstance(&pCAddin);<br />
pCAddin->AddRef();<br />
pCAddin->Add();<br />
pCAddin->Release();


Steve
GeneralRe: how to COM class in another class Pin
Milton Karimbekallil13-Feb-06 4:40
Milton Karimbekallil13-Feb-06 4:40 
QuestionHow to convert ATL COM DLL to ATL COM EXE Pin
Balkrishna Talele8-Feb-06 21:50
Balkrishna Talele8-Feb-06 21:50 
AnswerRe: How to convert ATL COM DLL to ATL COM EXE Pin
Douglas Troy9-Feb-06 7:48
Douglas Troy9-Feb-06 7:48 
GeneralRe: How to convert ATL COM DLL to ATL COM EXE Pin
Balkrishna Talele9-Feb-06 18:05
Balkrishna Talele9-Feb-06 18:05 
GeneralRe: How to convert ATL COM DLL to ATL COM EXE Pin
Jörgen Sigvardsson9-Feb-06 21:01
Jörgen Sigvardsson9-Feb-06 21:01 
GeneralRe: How to convert ATL COM DLL to ATL COM EXE Pin
Balkrishna Talele9-Feb-06 21:33
Balkrishna Talele9-Feb-06 21:33 
QuestionRe: How to convert ATL COM DLL to ATL COM EXE Pin
Douglas Troy17-Feb-06 6:53
Douglas Troy17-Feb-06 6:53 
QuestionHow to make application support OLE Automation? Pin
Kemi10018-Feb-06 14:27
Kemi10018-Feb-06 14:27 
AnswerRe: How to make application support OLE Automation? Pin
Douglas Troy9-Feb-06 7:45
Douglas Troy9-Feb-06 7:45 
QuestionWorking with IHTMLDocument Pin
sprymak3-Feb-06 18:56
sprymak3-Feb-06 18:56 
AnswerRe: Working with IHTMLDocument Pin
Douglas Troy8-Feb-06 6:44
Douglas Troy8-Feb-06 6:44 
AnswerRe: Working with IHTMLDocument Pin
Stephen Hewitt12-Feb-06 15:46
Stephen Hewitt12-Feb-06 15:46 
QuestionRe: Working with IHTMLDocument Pin
sprymak16-Feb-06 17:35
sprymak16-Feb-06 17:35 
QuestionOutlook add-ins. Account information. Pin
hybride2-Feb-06 21:17
hybride2-Feb-06 21:17 
AnswerRe: Outlook add-ins. Account information. Pin
Igor Vigdorchik4-Feb-06 15:01
Igor Vigdorchik4-Feb-06 15:01 
AnswerRe: Outlook add-ins. Account information. Pin
hybride5-Feb-06 21:23
hybride5-Feb-06 21:23 
QuestionSubclassing templates Pin
softwaremonkey2-Feb-06 1:36
softwaremonkey2-Feb-06 1:36 

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.