Solved

resource to a file

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

708 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