?
Solved

storing and reading properties of activex control

Posted on 2002-05-31
4
Medium Priority
?
159 Views
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:
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
Comment
Question by:Chutki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 23

Expert Comment

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

Eg:

pPropStg->Release(); pPropStg = NULL;

GOOD LUCK
0
 
LVL 1

Accepted Solution

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

DarthMod
Community Support Moderator
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 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