Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

resource to a file

Posted on 1999-01-13
1
Medium Priority
?
196 Views
Last Modified: 2013-11-20
I have a project in which I included an xls file (excel workbook) as a resource with certain ID. I like to
open a file and write this resource into it and close the
file. is there a standard/proper way to do this ? how ?
0
Comment
Question by:has
1 Comment
 
LVL 3

Accepted Solution

by:
plaroche earned 400 total points
ID: 1327639
FindResource will find your resource.
LoadResource will load it.
LockResource will lock it and return a pointer to your resource data.
SizeofResource will return its size, to be used with the pointer returned by LockResource.

The use of those functions, with your custom resource type should work and you should be able to write the binary data to a file opened with CFile.
0

Featured Post

Industry Leaders: 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: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

886 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