Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML2::XMLSchemaCache40 E_POINTER error...help!!!

From: mongiosan <mongiosan@-----.--->
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!!!


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent