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

C / C++ / MFC

 
GeneralRe: NEWBIE: how to iniate dialog after application window is shown? Pin
MVH13-Dec-02 0:36
MVH13-Dec-02 0:36 
GeneralRe: NEWBIE: how to iniate dialog after application window is shown? Pin
Daniel Strigl13-Dec-02 5:37
Daniel Strigl13-Dec-02 5:37 
GeneralRe: NEWBIE: how to iniate dialog after application window is shown? Pin
MVH13-Dec-02 21:46
MVH13-Dec-02 21:46 
GeneralRe: NEWBIE: how to iniate dialog after application window is shown? Pin
MVH15-Dec-02 22:42
MVH15-Dec-02 22:42 
GeneralRe: NEWBIE: how to iniate dialog after application window is shown? Pin
Daniel Strigl15-Dec-02 22:48
Daniel Strigl15-Dec-02 22:48 
GeneralRe: NEWBIE: how to iniate dialog after application window is shown? Pin
jhwurmbach13-Dec-02 0:04
jhwurmbach13-Dec-02 0:04 
QuestionHow can I free the memory allocated by this f(x)? Pin
Joan M12-Dec-02 22:36
professionalJoan M12-Dec-02 22:36 
AnswerRe: How can I free the memory allocated by this f(x)? Pin
dabs12-Dec-02 22:49
dabs12-Dec-02 22:49 
Well you never seem to release the pHTMLDocument2 interface. Thats probably your problem. Then you would probably be better off using smart pointers. If you are using ATL (which you should be Smile | :) ) you can use the CComPtr<> template class. There are even some predefined smart pointers that have already beed defined, IHTMLDocument2Ptr and IDispatchPtr to name few. Then you should be using CComBSTR to manage all BSTR's you are allocating. You can use it directly with CString:

<br />
CString strHTML( _T("some html code") );<br />
CComBSTR bstrHTML = strHTML;<br />
// use bstrHTML just like BSTR -<br />
// no need for any ::SysFreeString<br />


But of course you still need to learn the refcounting rules of COM if you want to know what you are doing Smile | :)



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M12-Dec-02 23:08
professionalJoan M12-Dec-02 23:08 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m12-Dec-02 23:38
geo_m12-Dec-02 23:38 
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 
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 

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.