Solved

storing and reading properties of activex control

Posted on 2002-05-31
4
158 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

690 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