storing and reading properties of activex control

Posted on 2002-05-31
Last Modified: 2013-11-20
Hi sir,
I am storing and reading activex properties to and from a file.using the following function in a component.

for storing:

for reading:

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.

Question by:Chutki
LVL 23

Expert Comment

by:Roshan Davis
ID: 7046421
call that interface pointers Release() function, that will close the file.


pPropStg->Release(); pPropStg = NULL;


Accepted Solution

DarthMod earned 0 total points
ID: 12084128
Submitted to PAQ with no points refunded (of 100)

Community Support Moderator

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Complete beginner needs help making a cron job 9 109
only14 challenge 19 68
matchUp  challenge 6 53
twoTwo  challenge 35 93
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now