Solved

resource to a file

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 92
Get filename and folder into excel 7 74
Creating Labels and Frequency list style reports in SAS code 9 98
NotAlone Challenge 20 83
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

17 Experts available now in Live!

Get 1:1 Help Now