bool load_binary( LPCTSTR path, LPBYTE bytes, size_t size )
{
FILE* f = _tfopen( path, _T("rb") );
if( !f ) return false;
int count2 = fread( (void*)bytes, sizeof(BYTE), size, f );
if( count2 < count ) return false;
fclose( f );
return true;
}
最終更新:2009年01月21日 09:50