storing and reading properties of activex control

Hi sir,
I am storing and reading activex properties to and from a file.using the following function in a component.

for storing:
stgOpenStorageEx();
createstream();

for reading:
stgOpenStorageEx();
openstream();

I have to do it for multiple times with the same file.
it asserts with the following sequence
1)create the storage the storage
2)read storage
3)if I call create storage again it says access denied.

could you please tell me how to close the file or stream after using them.

ChutkiAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DarthModConnect With a Mentor Commented:
Submitted to PAQ with no points refunded (of 100)

DarthMod
Community Support Moderator
0
 
Roshan DavisCommented:
call that interface pointers Release() function, that will close the file.

Eg:

pPropStg->Release(); pPropStg = NULL;

GOOD LUCK
0
All Courses

From novice to tech pro — start learning today.