Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help to create service Pin
David Crow27-Apr-07 3:47
David Crow27-Apr-07 3:47 
GeneralRe: Need help to create service Pin
VC_RYK27-Apr-07 4:30
VC_RYK27-Apr-07 4:30 
QuestionRe: Need help to create service Pin
David Crow27-Apr-07 4:42
David Crow27-Apr-07 4:42 
AnswerRe: Need help to create service Pin
bob1697227-Apr-07 3:21
bob1697227-Apr-07 3:21 
AnswerRe: Need help to create service Pin
Nemanja Trifunovic27-Apr-07 3:33
Nemanja Trifunovic27-Apr-07 3:33 
QuestionHow can I update the statusbar info of the MainFrame from the ChildFrame Pin
chaoxin27-Apr-07 2:34
chaoxin27-Apr-07 2:34 
AnswerRe: How can I update the statusbar info of the MainFrame from the ChildFrame Pin
bob1697227-Apr-07 14:25
bob1697227-Apr-07 14:25 
QuestionRegarding MSXML3.0 [modified] Pin
voorugonda prashanth27-Apr-07 2:15
voorugonda prashanth27-Apr-07 2:15 
Hi All,

i'm using IXMLDOMDocumentPtr for loading xml and do operations on it.
when i run my application with purify it is showing a memory leak in CreateInstance & loadXML.
please give me a suggestion where am i wrong? or what changes i need to do.

here is my sample code:

BSTR bstrUserInputsXml=NULL;
{
CoInitialize(NULL);

IXMLDOMDocumentPtr pXMLDom=NULL;

hr=pXMLDom.CreateInstance( "Microsoft.XMLDOM" );
//hr=pXMLDom.CreateInstance( __uuidof(MSXML2::DOMDocument40));

if(FAILED(hr))
{
//cout<<"Failed to instantiate DOMDocument40"<<endl;
return="" -1;
="" messagebox(null,"failed="" to="" instantiate="" domdocument40","keytable.s",mb_ok);=""
="" ;
="" }
="" if(pxmldom-="">load("D:\\userinputs1.xml")!= VARIANT_TRUE)
{
//MessageBox(NULL,"Failed load xml string","KeyTable.s",MB_OK);
return ;
}
bstrUserInputsXml = pXMLDom->xml;

pXMLDom.Release();
CoUninitialize();
}

Thanks in advance.
Prashanthv


-- modified at 14:02 Friday 27th April, 2007
QuestionRe: Regarding MSXML3.0 Pin
bob1697227-Apr-07 4:06
bob1697227-Apr-07 4:06 
Questionfile read problem Pin
david bagaturia27-Apr-07 1:55
david bagaturia27-Apr-07 1:55 
AnswerRe: file read problem Pin
_AnsHUMAN_ 27-Apr-07 2:15
_AnsHUMAN_ 27-Apr-07 2:15 
GeneralRe: file read problem Pin
david bagaturia27-Apr-07 2:24
david bagaturia27-Apr-07 2:24 
AnswerRe: file read problem Pin
kakan27-Apr-07 4:00
professionalkakan27-Apr-07 4:00 
Questionhr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 27-Apr-07 1:34
amitmistry_petlad 27-Apr-07 1:34 
AnswerRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
Mark Salsbery29-Apr-07 9:20
Mark Salsbery29-Apr-07 9:20 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 29-Apr-07 17:51
amitmistry_petlad 29-Apr-07 17:51 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
Mark Salsbery30-Apr-07 6:47
Mark Salsbery30-Apr-07 6:47 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 30-Apr-07 18:22
amitmistry_petlad 30-Apr-07 18:22 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
Mark Salsbery1-May-07 5:31
Mark Salsbery1-May-07 5:31 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 1-May-07 17:35
amitmistry_petlad 1-May-07 17:35 
QuestionName of the folder Pin
nripun27-Apr-07 1:21
nripun27-Apr-07 1:21 
AnswerRe: Name of the folder Pin
_AnsHUMAN_ 27-Apr-07 2:21
_AnsHUMAN_ 27-Apr-07 2:21 
AnswerRe: Name of the folder Pin
krmed27-Apr-07 6:52
krmed27-Apr-07 6:52 
QuestionProblem with report generation Pin
Shraddha Gautam27-Apr-07 0:47
Shraddha Gautam27-Apr-07 0:47 
QuestionGetting a text that cursor is pointing Pin
Toubou27-Apr-07 0:22
Toubou27-Apr-07 0:22 

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.