Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OLEStream Open method

25 views
Skip to first unread message

michela

unread,
Jul 9, 2003, 12:30:51 PM7/9/03
to
Hi to all!
I found why "SaveAs" method of olecontrol gave me an error, but now
I have another question.
I open an olestorage variable from ole file and I want load it in a
olestream object.
The script is:

....
olestore = create olestorage
olestr = create olestream
.....
li_ris = olestore.open( "c:\temp\test.ole")
......//"file_a" is the name of an substorage..
li_ris = olestr.Open(olestore, "file_a", stgReadWrite!, stgExclusive!)

The last row of code give me li_ris = -5 that is "Access denied".
I changed read mode and sharemode of open (of olestore and olestream) but
this way does not resolve my problem!
Have you got any suggestions?
Thans for your help!

Michela

Andy Turiansky [TeamSybase]

unread,
Jul 10, 2003, 1:45:29 PM7/10/03
to
Could it be that it is already open or something else is accessing it?


On Wed, 9 Jul 2003 18:30:51 +0200,
in powersoft.public.powerbuilder.ole-ocx-activex


michela <michela@michela> wrote:
>Hi to all!
>I found why "SaveAs" method of olecontrol gave me an error, but now
>I have another question.
>I open an olestorage variable from ole file and I want load it in a
>olestream object.
>The script is:
>

>.....


>olestore = create olestorage
>olestr = create olestream

>......


>li_ris = olestore.open( "c:\temp\test.ole")

>.......//"file_a" is the name of an substorage..


>li_ris = olestr.Open(olestore, "file_a", stgReadWrite!, stgExclusive!)
>
>The last row of code give me li_ris = -5 that is "Access denied".
>I changed read mode and sharemode of open (of olestore and olestream) but
>this way does not resolve my problem!
>Have you got any suggestions?
>Thans for your help!
>
>Michela
>
>
>

- - -
Andy [TeamSybase]

Techwave 2003 - http://www.sybase.com/techwave2003
International Sybase User Group (ISUG) - http://www.isug.com
CodeXchange - http://powerbuilder.codeXchange.sybase.com/


0 new messages