W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > January to March 2002

Re: Anyone have any MS web folder/Rosebud sample code?

From: Joachim Feise <jfeise@ics.uci.edu>
Date: Thu, 21 Mar 2002 23:42:18 -0800
Message-ID: <3C9AE05A.8090103@ics.uci.edu>
To: Michael Datuin <da2in@yahoo.com>
CC: w3c-dist-auth@w3.org
Michael Datuin wrote:

>Does anyone have any experience/knowledge on using 
>MS OLE DB Provider for Internet Publishing (aka,
>Rosebud)?
>
>I'm looking for C/C++ (not VB) sample code that shows 
>how to open files from and save files to a MS web 
>folder.  
>
>I've looked high and low on msdn.microsoft.com for
>"understandable and useful" information regarding web 
>folders, but to no avail. The link to the sample 
>Sample1 program on the MS website for OLE DB Provider 
>for Internet Publishing doesn't even provide a link to
>download the example!!!
>
>I found references to the WebFolder objects and such,
>but all I want is a C/C++ example that I can use to
>add
>to my Win32 application.  Are there any sample code
>that shows how to open/save files with MS web 
>folders?!?!?!  
>
>I've seen many requests for help regarding sample code
>to programmatically (using C/C++) access MS web
>folders, and MS web folders in general, but never any
>responses.  Frustrating!
>
I have used it in a commercial application. But it is rather painful to 
use and quite limited,
so we are no longer using it and rolled our own library.
Essentially, you need to use the interfaces specificed in the OLE DB 2.5 
SDK:
IRootBinder, IBindResource,  IRowset, ICreateRow, etc.
For example, for a PROPFIND, you get the IRootBinder interface, from 
that the IBindResource interface,
then you call Bind on that, with a request for an IRowset interface.
You can then use the standard OLE DB functions to operate on the rowset.
File reading/writing is done through an IStream interface.
So you have to think in database terms, and, of course, COM knowledge is 
required.

-Joe
Received on Friday, 22 March 2002 02:41:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:44:00 GMT