Click here to Skip to main content
15,913,090 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to develop web stress test software? Pin
Daniel Turini12-Oct-02 7:08
Daniel Turini12-Oct-02 7:08 
Generalcapture keystoke and screenshot in DOS mode Pin
shitij12-Oct-02 1:00
shitij12-Oct-02 1:00 
GeneralCapture fields in active window Pin
shitij12-Oct-02 0:58
shitij12-Oct-02 0:58 
GeneralRe: Capture fields in active window Pin
Nish Nishant12-Oct-02 1:02
sitebuilderNish Nishant12-Oct-02 1:02 
GeneralRe: how to develop web stress test software? Pin
Stephane Rodriguez.12-Oct-02 0:20
Stephane Rodriguez.12-Oct-02 0:20 
GeneralIncrease in Memory size Pin
suresh_sathya11-Oct-02 23:54
suresh_sathya11-Oct-02 23:54 
GeneralRe: Increase in Memory size Pin
Stephane Rodriguez.12-Oct-02 0:11
Stephane Rodriguez.12-Oct-02 0:11 
GeneralRe: Increase in Memory size-Could u pl help Pin
suresh_sathya12-Oct-02 0:39
suresh_sathya12-Oct-02 0:39 
I am just trying to parse xml and add some attribute names to my listbox.But when the program comes in for loop,it stops at third line and shows memory error.

Debug assertion failed



CComPtr<ixmldomdocument> pXMLDoc;
CComPtr <ixmldomnamednodemap> pXMLNamedNodeMap=NULL;
CComPtr <ixmldomnodelist> pXMLNodeList=NULL;
CComPtr <ixmldomnode> pXMLAttNode=NULL;
CComPtr <ixmldomnode> pXMLNode=NULL;

HRESULT hr;
CComBSTR bstrName;
CComVariant varValue;
CComVariant varNodeValue;
long lCount;
VARIANT_BOOL bIsSuccessful;

hr = CoInitialize(NULL);
hr = CoCreateInstance(CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER,
IID_IXMLDOMDocument, (void**)&pXMLDoc);

if (FAILED(hr))
return(hr);



varValue="testing.xml";


hr=pXMLDoc->load(varValue,&bIsSuccessful);
pXMLDoc->selectNodes((_bstr_t)"DATABASE/TABLE[@Left]",&pXMLNodeList);
long Tablelen;
pXMLNodeList->get_length(&Tablelen);
HWND hListBox=GetDlgItem(hDlg,IDC_LIST);
CComVariant Tablename;



for(int ii=0;ii< Tablelen;ii++)
{


pXMLNodeList->get_item(ii,&pXMLNode);
pXMLNode->get_attributes(&pXMLNamedNodeMap);
pXMLNamedNodeMap->getNamedItem((_bstr_t)"Name",&pXMLNode);
pXMLNode->get_nodeValue(&Tablename);
//SendMessage(hListBox,LB_ADDSTRING,0,(LPARAM)(char *)(_bstr_t)Tablename);

}
GeneralRe: Increase in Memory size-Could u pl help Pin
Stephane Rodriguez.12-Oct-02 1:23
Stephane Rodriguez.12-Oct-02 1:23 
GeneralThe CImageList Problem! Pin
oly200211-Oct-02 23:37
oly200211-Oct-02 23:37 
GeneralRe: The CImageList Problem! Pin
Stephane Rodriguez.12-Oct-02 0:12
Stephane Rodriguez.12-Oct-02 0:12 
Generalmsado15.tlh problem Pin
stevenson11-Oct-02 23:09
stevenson11-Oct-02 23:09 
GeneralRe: msado15.tlh problem Pin
Stephane Rodriguez.12-Oct-02 0:15
Stephane Rodriguez.12-Oct-02 0:15 
GeneralProblem with using VC6 dlls in VC7 Pin
mariuszpopiolek11-Oct-02 23:06
mariuszpopiolek11-Oct-02 23:06 
GeneralCode Crash!!! Pin
John Bosko11-Oct-02 22:13
John Bosko11-Oct-02 22:13 
GeneralRe: Code Crash!!! Pin
Nish Nishant11-Oct-02 22:21
sitebuilderNish Nishant11-Oct-02 22:21 
GeneralRe: Code Crash!!! Pin
Stephane Rodriguez.11-Oct-02 23:20
Stephane Rodriguez.11-Oct-02 23:20 
GeneralRe: Code Crash!!! Pin
Stephane Rodriguez.11-Oct-02 23:32
Stephane Rodriguez.11-Oct-02 23:32 
Questionwho is it? Pin
includeh1011-Oct-02 21:12
includeh1011-Oct-02 21:12 
AnswerRe: who is it? Pin
Nish Nishant11-Oct-02 22:19
sitebuilderNish Nishant11-Oct-02 22:19 
AnswerRe: who is it? Pin
Stephane Rodriguez.11-Oct-02 23:38
Stephane Rodriguez.11-Oct-02 23:38 
GeneralRe: who is it? Pin
carrie12-Oct-02 0:42
carrie12-Oct-02 0:42 
GeneralA notify icon problem Pin
Kerry Chou11-Oct-02 19:01
Kerry Chou11-Oct-02 19:01 
GeneralRe: A notify icon problem Pin
Nish Nishant11-Oct-02 22:17
sitebuilderNish Nishant11-Oct-02 22:17 
GeneralRe: A notify icon problem Pin
Kerry Chou11-Oct-02 22:58
Kerry Chou11-Oct-02 22:58 

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.