Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: MSXML2::XMLSchemaCache40 E_POINTER error...help!!! [Thread Next] Re: MSXML2::XMLSchemaCache40 E_POINTER error...help!!!To: NULL Date: 5/30/2008 6:33:00 AM On 30 Mag, 14:58, Bjoern Hoehrmann <bjo...@hoehrmann.de> wrote:
> * mongio...@gmail.com wrote in microsoft.public.xml:
>
> >I'm trying to validate an XML document but i have a big issue: when i
> >call the CreateInstance method for the schema i get an E_POINTER
> >error. In fact the create instance succes, but the pointer to the
> >SchemaColletion is 0x0000000, so the add command fails!
>
> Now does the CreateInstance call fail with E_POINTER or not?
>
>
>
> > HRESULT hr;
>
> > if (!opened) return;
> > try {
>
> > MSXML2::IXMLDOMSchemaCollection2Ptr schema;
>
> > hr=3Dschema.CreateInstance(__uuidof(MSXML2::XMLSchemaCache40)=
);
> > (hr =3D=3D 0) ? 0: printf("KO");
>
> > CXmlString dsigSchema(dsxsd);
> > CComVariant dsigSchemaFileName;
> > dsigSchemaFileName.vt =3D VT_BSTR;
> > dsigSchemaFileName.bstrVal =3D dsigSchema.AllocSysString();
>
> > **********THIS FAILS WITH A E_POINTER ERROR************
> > hr=3Dschema->add(L"http://www.w3.org/2000/09/
> >xmldsig#",dsigSchemaFileName);
>
> Perhaps there is something wrong with your CXmlString class or the dsxsd
> parameter? What is dsigSchemaFileName at this point exactly?
> --
> Bj=F6rn H=F6hrmann =B7 mailto:bjo...@hoehrmann.de =B7http://bjoern.hoehrma=
nn.de
> Weinh. Str. 22 =B7 Telefon: +49(0)621/4309674 =B7http://www.bjoernsworld.d=
e
> 68309 Mannheim =B7 PGP Pub. KeyID: 0xA4357E78 =B7http://www.websitedev.de/=
Ops, sorry for annoying.....
the hr was "80040154 interface not registered" , i didn't have
registered the msxml2.
"regsvr32 c:\WINDOWS\system32\msxml2.dll" .... and the sun shine
again!
thanks anyway!!!
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
