Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M12-Dec-02 23:52
professionalJoan M12-Dec-02 23:52 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 0:09
geo_m13-Dec-02 0:09 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M13-Dec-02 0:29
professionalJoan M13-Dec-02 0:29 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 0:58
geo_m13-Dec-02 0:58 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M13-Dec-02 1:09
professionalJoan M13-Dec-02 1:09 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 1:15
geo_m13-Dec-02 1:15 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M13-Dec-02 1:25
professionalJoan M13-Dec-02 1:25 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 1:40
geo_m13-Dec-02 1:40 
congratulation Wink | ;)

well, there is nothing like list of smart pointers. CComPtr is a template - this means the actual code is 'created' during the compilation. Therefore you can create CComPtr or CComQIPtr with any interface (for being precise, must be derived from IUnknown, but for your usage it is vith every interface you can get from any of microsoft libraries), so for IHTMLElement it is CComPtr<IHTMLElement> for IDispatch it is CComPtr<IDispatch> for IHTMLForm it is CComPtr<IHTMLForm> for IAnyInterface it is CComPtr<IAnyInterface> etc. (the same is valid for CComQIPtr). Compiler then takes the parameter (what is written between <> ) and makes some specific CComPtr pointer pointing to some specific interface.

Hope it is clean for you now
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M13-Dec-02 1:55
professionalJoan M13-Dec-02 1:55 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 2:20
geo_m13-Dec-02 2:20 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M13-Dec-02 2:07
professionalJoan M13-Dec-02 2:07 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 0:27
geo_m13-Dec-02 0:27 
GeneralUsing CRichEditView in Splitter window Pin
berlenz12-Dec-02 22:21
berlenz12-Dec-02 22:21 
GeneralRe: Using CRichEditView in Splitter window Pin
Roman Fadeyev12-Dec-02 23:16
Roman Fadeyev12-Dec-02 23:16 
GeneralRe: Using CRichEditView in Splitter window Pin
berlenz12-Dec-02 23:25
berlenz12-Dec-02 23:25 
GeneralRe: Using CRichEditView in Splitter window Pin
Roman Fadeyev13-Dec-02 0:16
Roman Fadeyev13-Dec-02 0:16 
GeneralRight aligned Tree ! Pin
Hadi Rezaee12-Dec-02 21:45
Hadi Rezaee12-Dec-02 21:45 
GeneralRe: Right aligned Tree ! Pin
Roman Fadeyev12-Dec-02 23:31
Roman Fadeyev12-Dec-02 23:31 
GeneralCritical: Crashes ocx,dll when loading 10-15 controls in Win95 Pin
arunkr12-Dec-02 20:38
arunkr12-Dec-02 20:38 
QuestionWhat am I missing? Pin
Muralia Dhar12-Dec-02 18:28
Muralia Dhar12-Dec-02 18:28 
AnswerRe: What am I missing? Pin
Christian Graus12-Dec-02 18:36
protectorChristian Graus12-Dec-02 18:36 
GeneralRe: What am I missing? Pin
Muralia Dhar12-Dec-02 18:52
Muralia Dhar12-Dec-02 18:52 
GeneralInvalidate window... Pin
Neha12-Dec-02 17:15
Neha12-Dec-02 17:15 
GeneralRe: Invalidate window... Pin
Christian Graus12-Dec-02 18:01
protectorChristian Graus12-Dec-02 18:01 
GeneralRe: Invalidate window... Pin
Neha12-Dec-02 19:09
Neha12-Dec-02 19:09 

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.