Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML 3.0

From: "Petar Popara" <my.fake@----.--->
To: NULL
Date: 10/7/2005 12:19:00 PM
Thank you very much for your help.

This is my C++ code:

IStorage * pStorage = NULL;
hr = StgCreateDocfile(L"tmp.html",
                                  STGM_CREATE | STGM_READWRITE | STGM_DIRECT 
| STGM_SHARE_EXCLUSIVE,
                                  0,
                                  &pStorage);
if (FAILED(hr)) return S_FALSE;

IStream * pStream = NULL;
hr = pStorage->CreateStream(L"",
                                        STGM_CREATE | STGM_READWRITE | 
STGM_DIRECT | STGM_SHARE_EXCLUSIVE,
                                        0,
                                        0,
                                        &pStream);
if (FAILED(hr)) return S_FALSE;

hr = spMSXML->transformNodeToObject(spStylesheet, pStream);
if (FAILED(hr)) return S_FALSE;

Well, now the problem is that right after StgCreateDocfile() is being 
called, "tmp.html" file is created with length of 16K (16384 bytes). After 
transformNodeToObject() executes, my HTML is written into tmp.html, but 
_NOT_ _FROM_ _THE_ _BEGINNING_ of the tmp.html file. :( My output HTML in 
tmp.html starts in location 16K - myHtmlLength and ends at the end of the 
file. :(

What is going on? 




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