Just add the file as a resource to your application. You can "read" it with code like this:
HRSRC hRes = FindResource(NULL, <ID of your resource>, _T("<type>")); HGLOBAL hGlobal = NULL; DWORD dwTextSize = 0; if(hRes != NULL) { hGlobal = LoadResource(NULL, hRes); dwTextSize = SizeofResource(NULL, hRes); } if(hGlobal != NULL) { const char *lpszText = (const char *)LockResource(hGlobal); ... whatever ... }
source share