Resource files represent one of the most prominent features of Windows programming. It is through resource files that most applications define the visible elements of their user interface: menus, dialogs, text strings, bitmaps, and other types of resources. Resource files are created in a form readable by humans and compiled with the Resource Compiler. The compiled result is usually linked with the rest of the application to form a single binary image that contains executable code and resource information. If you add a resource item ( Bitmap, Html,…) then this will embedded into .Exe( or Dll, OCX ) file Using Following code we can save resource files locally. |
#include <fstream> char* CUtility::GetResourceData(const CString& strCustomResName,int nResourceId,DWORD& nReadDataSize ) void CUtility:: CreateFile (const CString& strFileName,char *pData, DWORD wDatLength) { |
Example Code: CUtility::SaveResourceItemToFile( _T(“C:\\Sen.sql”, _T(“DMSqlData”), IDR_DMSQL_SCRIPT_DATA) |
Monday, January 28, 2008
Saving a Resource Item into File From Application Resource VC++
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment