Re: IXMLDOMDocument is NULL when passed from DLL to EXE
From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 03/25/04
- Next message: Daniel Knueven: "Re: CoUnitialize crashes thread"
- Previous message: Alexander Nickolov: "Re: COM Wrapper for DB Library"
- In reply to: AS: "IXMLDOMDocument is NULL when passed from DLL to EXE"
- Next in thread: Andrew Shiels: "Re: IXMLDOMDocument is NULL when passed from DLL to EXE"
- Reply: Andrew Shiels: "Re: IXMLDOMDocument is NULL when passed from DLL to EXE"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Mar 2004 09:50:42 -0800
Did you pass the pointer, or the address of the pointer?
-- ===================================== Alexander Nickolov Microsoft MVP [VC], MCSD email: agnickolov@mvps.org MVP VC FAQ: http://www.mvps.org/vcfaq ===================================== "AS" <a@aa.com> wrote in message news:%2319z1XlEEHA.2884@TK2MSFTNGP12.phx.gbl... > Hello > > Firstly, i realise this seems like a question on the MSXML SDK - but i think > the error im getting is COM related. > > I have a thread which calls a function inside a DLL (which i also wrote - > just a normal Win32 DLL). In the thread i declare a pointer to an XML > Document i.e. IXMLDOMDocument *paXMLDoc = NULL; > > I pass this pointer to my DLL which calls CoCreateInstance to create an XML > document - the DLL function then proceeds to load an XML document. > > However, the problem is that when the DLL function returns, the created XML > document is always NULL. I have no idea why as I have debugged inside the > DLL and it gets created ok. Its just not getting returned properly. > > I have called CoInitializeEx in the main thread with the multithreaded flag. > Could the problem be caused by the fact that i am trying to pass and object > between my DLL and my EXE? > > Any advice would be appreciates. > > Thanks > > Andy > > > > > > > >
- Next message: Daniel Knueven: "Re: CoUnitialize crashes thread"
- Previous message: Alexander Nickolov: "Re: COM Wrapper for DB Library"
- In reply to: AS: "IXMLDOMDocument is NULL when passed from DLL to EXE"
- Next in thread: Andrew Shiels: "Re: IXMLDOMDocument is NULL when passed from DLL to EXE"
- Reply: Andrew Shiels: "Re: IXMLDOMDocument is NULL when passed from DLL to EXE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|