From: fungi8210 on
Hi experts,

Is there a detailed walkthrough of how to use msxml in WM5 or WM6?
I have tried to follow the deskstop version of it, compiled fine but
received the following exception during run-time.

RaiseException: Thread=86b40000 Proc=84451270 'xmlTEst.exe'
AKY=00200001 PC=03f66bb8(coredll.dll+0x00018bb8)
RA=84006c7c(NK.EXE+0x00006c7c) BVA=00000000 FSR=00000000
TLSKERN_NOFAULT set... bypassing kernel debugger.

and data abort errors
Data Abort: Thread=86b40000 Proc=84451270 'xmlTEst.exe'
AKY=00200001 PC=03a11844(msxml3.dll+0x000d5844) RA=f000fffc(???+0xf000fffc)
BVA=2df6a0ec FSR=00000007

this is the simple code that i wrote

#include <windows.h>
#include <dshow.h>
#import <msxml.dll> named_guids
using namespace MSXML;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR
szCmdline, int nCmdShow)
{

IXMLDOMDocumentPtr m_plDomDocument;
IXMLDOMElementPtr m_pDocRoot;

CoInitialize(NULL);
m_plDomDocument.CreateInstance(CLSID_DOMDocument);
BSTR szName = TEXT("stock.xml");
variant_t vResult;
vResult = m_plDomDocument->load(szName);

CoUninitialize();
return 0;
}


thanks!
From: John Spaith [MS] on
The exceptions are harmless and the result of how MSXML does error handling.
Check out http://www.pocketpcdn.com/articles/xmlfaq.html for more details.

--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation

Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. � 2006 Microsoft Corporation. All rights
reserved.

"fungi8210" <fungi8210(a)discussions.microsoft.com> wrote in message
news:CDF79AC8-D26A-4912-8813-35C22B415F01(a)microsoft.com...
> Hi experts,
>
> Is there a detailed walkthrough of how to use msxml in WM5 or WM6?
> I have tried to follow the deskstop version of it, compiled fine but
> received the following exception during run-time.
>
> RaiseException: Thread=86b40000 Proc=84451270 'xmlTEst.exe'
> AKY=00200001 PC=03f66bb8(coredll.dll+0x00018bb8)
> RA=84006c7c(NK.EXE+0x00006c7c) BVA=00000000 FSR=00000000
> TLSKERN_NOFAULT set... bypassing kernel debugger.
>
> and data abort errors
> Data Abort: Thread=86b40000 Proc=84451270 'xmlTEst.exe'
> AKY=00200001 PC=03a11844(msxml3.dll+0x000d5844)
> RA=f000fffc(???+0xf000fffc)
> BVA=2df6a0ec FSR=00000007
>
> this is the simple code that i wrote
>
> #include <windows.h>
> #include <dshow.h>
> #import <msxml.dll> named_guids
> using namespace MSXML;
>
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR
> szCmdline, int nCmdShow)
> {
>
> IXMLDOMDocumentPtr m_plDomDocument;
> IXMLDOMElementPtr m_pDocRoot;
>
> CoInitialize(NULL);
> m_plDomDocument.CreateInstance(CLSID_DOMDocument);
> BSTR szName = TEXT("stock.xml");
> variant_t vResult;
> vResult = m_plDomDocument->load(szName);
>
> CoUninitialize();
> return 0;
> }
>
>
> thanks!