BOOL LoadMyJpegFile(CString fname,LPPICTURE *lppi){HANDLE hFile=CreateFile(fname,GENERIC_READ,0,NULL,OPEN_EXISTING,0,NULL);
if(hFile==INVALID_HANDLE_VALUE){CString str;str.Format(_T("%s无法被打开"),fname);MessageBox(str);
原文转自:http://www.ltesting.net