Click here to Skip to main content
15,923,681 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Event Handler for dynamic created Rich Edit Controls Pin
SutterA21-Jan-09 23:26
SutterA21-Jan-09 23:26 
GeneralRe: Event Handler for dynamic created Rich Edit Controls Pin
Code-o-mat21-Jan-09 23:27
Code-o-mat21-Jan-09 23:27 
GeneralRe: Event Handler for dynamic created Rich Edit Controls Pin
SutterA21-Jan-09 23:33
SutterA21-Jan-09 23:33 
GeneralRe: Event Handler for dynamic created Rich Edit Controls Pin
Code-o-mat21-Jan-09 23:45
Code-o-mat21-Jan-09 23:45 
AnswerRe: Event Handler for dynamic created Rich Edit Controls Pin
SutterA22-Jan-09 19:52
SutterA22-Jan-09 19:52 
Questionmsxml::ixmldomdocument save method fails Pin
VC++Maniac21-Jan-09 21:39
VC++Maniac21-Jan-09 21:39 
AnswerRe: msxml::ixmldomdocument save method fails Pin
KarstenK21-Jan-09 21:42
mveKarstenK21-Jan-09 21:42 
QuestionRe: msxml::ixmldomdocument save method fails Pin
CPallini21-Jan-09 21:50
mveCPallini21-Jan-09 21:50 
What about dopcumentation?
You should check the returned HRESULT value.
This page [^] contains the following nice C++ example:

BOOL DOMDocSaveLocation()
{
   BOOL bResult = FALSE;
   IXMLDOMDocument *pIXMLDOMDocument = NULL;
   HRESULT hr;

   try
   {
      _variant_t varString = _T("D:\\sample.xml");
      // Initialize pIXMLDOMDocument (create a DOMDocument).
      // Load document.
      hr = pIXMLDOMDocument->save(varString);
      if(SUCCEEDED(hr))
         bResult = TRUE;
   }
   catch(...)
   {
      DisplayErrorToUser();
   // Release the IXMLDOMDocument interface.
   }
   // Release the IXMLDOMDocument interface when finished with it.
   return bResult;
}


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: msxml::ixmldomdocument save method fails Pin
VC++Maniac22-Jan-09 2:22
VC++Maniac22-Jan-09 2:22 
Questionwhich forum + mfc + digital telepphone Pin
hrishiS21-Jan-09 21:37
hrishiS21-Jan-09 21:37 
AnswerRe: which forum + mfc + digital telepphone Pin
KarstenK21-Jan-09 21:45
mveKarstenK21-Jan-09 21:45 
QuestionGetProcAddress and COM? Pin
TungstenX21-Jan-09 21:37
TungstenX21-Jan-09 21:37 
AnswerRe: GetProcAddress and COM? Pin
KarstenK21-Jan-09 21:40
mveKarstenK21-Jan-09 21:40 
GeneralRe: GetProcAddress and COM? Pin
TungstenX21-Jan-09 22:14
TungstenX21-Jan-09 22:14 
GeneralRe: GetProcAddress and COM? Pin
KarstenK21-Jan-09 22:30
mveKarstenK21-Jan-09 22:30 
GeneralRe: GetProcAddress and COM? Pin
TungstenX21-Jan-09 22:38
TungstenX21-Jan-09 22:38 
GeneralRe: GetProcAddress and COM? Pin
KarstenK21-Jan-09 22:57
mveKarstenK21-Jan-09 22:57 
GeneralRe: GetProcAddress and COM? Pin
TungstenX21-Jan-09 23:12
TungstenX21-Jan-09 23:12 
QuestionRe: GetProcAddress and COM? Pin
TungstenX21-Jan-09 22:45
TungstenX21-Jan-09 22:45 
AnswerRe: GetProcAddress and COM? Pin
KarstenK21-Jan-09 23:05
mveKarstenK21-Jan-09 23:05 
AnswerRe: GetProcAddress and COM? Pin
CPallini21-Jan-09 23:14
mveCPallini21-Jan-09 23:14 
GeneralRe: GetProcAddress and COM? Pin
TungstenX22-Jan-09 0:27
TungstenX22-Jan-09 0:27 
GeneralRe: GetProcAddress and COM? Pin
CPallini22-Jan-09 0:33
mveCPallini22-Jan-09 0:33 
QuestionRe: GetProcAddress and COM? Pin
TungstenX22-Jan-09 2:19
TungstenX22-Jan-09 2:19 
AnswerRe: GetProcAddress and COM? Pin
CPallini22-Jan-09 2:34
mveCPallini22-Jan-09 2:34 

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.