Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML 3.0

From: Scott Barnhart <scottbarnhart1@-------.--->
To: NULL
Date: 10/7/2005 11:43:00 AM
"Petar Popara" <my.fake@m...> wrote in
news:#guI9hyyFHA.2652@T...: 

> 
> 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);
> 
> What is going on? 
> 

If you are just wanting to transform XML to an HTML file, I don't think you 
want your output file to be a COM Compound File (structured-storage).  This 
is a special kind of file that can contain sub-files and sub-streams, etc. 
See the MS documentation on StgCreateDoc() at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/stg/stg/stgcreatedocfile.asp

You are probably just trying to find a way to create a normal file and get 
back an IStream interface to it.  If that is the case, check out 
SHCreateStreamOnFile():

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/shellcc/platform/shell/reference/shlwapi/version/shcreatestreamonfile.as
p

Note, however, that you have to have shlwapi.dll version 5.0 or later (came 
with Internet Explorer 5.0 or later).


-- 
Scott Barnhart
mailto:scottbarnhart1@h...


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