HRSRC res = FindResource(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_JIF1),_T("jif"));
HGLOBAL gl=LoadResource(NULL,res);
LPVOID lp=LockResource(gl);
CString strFileName(_T("d://Left.bmp"));
HANDLE hFile = CreateFile(strFileName ,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,0,NULL);
DWORD dw,dwSize = SizeofResource(NULL,res);
BOOL bl = TRUE;
if (!WriteFile (hFile,lp,dwSize,&dw,NULL))
bl = FALSE;
CloseHandle(hFile);
FreeResource(gl);
HGLOBAL gl=LoadResource(NULL,res);
LPVOID lp=LockResource(gl);
CString strFileName(_T("d://Left.bmp"));
HANDLE hFile = CreateFile(strFileName ,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,0,NULL);
DWORD dw,dwSize = SizeofResource(NULL,res);
BOOL bl = TRUE;
if (!WriteFile (hFile,lp,dwSize,&dw,NULL))
bl = FALSE;
CloseHandle(hFile);
FreeResource(gl);