CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    CA , USA
    Posts
    83

    Unhappy structured storage

    Hi

    This is on structured storage. Im having a problem creating a structure file that with
    STGM_READWRITE |STGM_DIRECT |STGM_SHARE_DENY_WRITE options.
    I tried stgcretedocfile and StgCreateStorageEx.

    I even tried IDirectWriterLock interface, nothing seems to work. Basically i want the file to be opened in read/write access at one place and let others use it only using read access. How do i achieve this without STGM_TRANSACTED flag.
    Any help is greately appreciated.

    thanks
    shashi

  2. #2
    Join Date
    Jan 2003
    Location
    Cambridge, UK
    Posts
    752
    hi,

    try something like

    STGM_READWRITE| STGM_FAILIFTHERE |STGM_SHARE_EXCLUSIVE
    Cheers,

    Alex
    Please rate this post if you find it helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured