Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: MSXML 3.0 >Thread Next - Re: MSXML 3.0 Re: MSXML 3.0To: 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... | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
