Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
whFile = CreateFile( tmpfilename.utf16() , GENERIC_WRITE | GENERIC_READ, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL,NULL);
if ( whFile == INVALID_HANDLE_VALUE )
QMessageBox::warning( 0, "wCreateFile", QString::fromLocal8Bit("fails to create map file") );
whMapFile= CreateFileMapping(whFile,NULL, PAGE_READWRITE,(DWORD)(qwFileSize>>32), (DWORD)(qwFileSize&0xFFFFFFFF),NULL);
if ( whMapFile==NULL )
QMessageBox::warning( 0, "wCreateFileMapping", QString::fromLocal8Bit("fails to create map file") );
CreateFileMapping:GetLastError return 112,and I find that it means "has not enough disk space"
how to deal with it?
Thks in advance.