Solved

resource to a file

Posted on 1999-01-13
1
191 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 100 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 95
Include multiple hostnames in this command? 3 55
wait notify demo infinite loop 3 124
moto 4g phone enable finger print 4 27
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.

830 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