Click here to Skip to main content
15,885,875 members
Articles / Programming Languages / C++

Adding and extracting binary resources

Rate me:
Please Sign up or sign in to vote.
4.90/5 (47 votes)
28 May 20034 min read 210.3K   9.4K   89  
A beginner's guide to adding a binary resource in visual studio and a simple class for programmatical extraction.
#ifndef _waxie_binary_resource_h_
#define _waxie_binary_resource_h_

#include <string>

class BinRes  
{
public:
	BinRes();
	virtual ~BinRes();

public:
	static void ExtractBinResource( std::string strCustomResName, int nResourceId, std::string strOutputName);

private:
	static std::string getAppLocation();

};

#endif 

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United Kingdom United Kingdom
never late, and never early. Hes always on time: its ade!

Comments and Discussions