Altova Mailing List Archives
>microsoft.public.xml Archive Home
>Thread Prev - RE: XML to C code using MSXML
>Thread Next - RE: XML to C code using MSXML
RE: XML to C code using MSXML
Date: 6/12/2006 10:10:00 AM
Added VariantInit(&vResultDoc); after VARIANT vResultDoc; but same behaviour. "J Hendrich" wrote: > > > VARIANT vResultDoc; > > > vResultDoc.vt = VT_DISPATCH; > > > vResultDoc.pdispVal = pDispatch; > > > > > > // transformo > > > hResult=spDocSource->transformNodeToObject(spDocStylesheet, vResultDoc); > > > SUCCEEDED(hResult) ? 0 : return 1; > > > > > > // guardo resultado en archivoC > > > hResult = spDocResult->save(fileC.c_str()); > > > SUCCEEDED(hResult) ? 0 : return 1; > > > > > I don't know that this has anything to do with it, but it looks like you > should call VariantInit after you declare your VARIANT and add a reference to > spDocResult (and call VariantClear after you're done).