[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

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.

0
Chutki
Asked:
Chutki
1 Solution
 
Roshan DavisCommented:
call that interface pointers Release() function, that will close the file.

Eg:

pPropStg->Release(); pPropStg = NULL;

GOOD LUCK
0
 
DarthModCommented:
Submitted to PAQ with no points refunded (of 100)

DarthMod
Community Support Moderator
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now