search for: sharedenywrite

Displaying 1 result from an estimated 1 matches for "sharedenywrite".

2010 Mar 08
0
Difficulties in add cover art to FLAC file
...ype = (FLAC__StreamMetadata_Picture_Type)3; FLAC__metadata_object_picture_set_mime_type( picture, "image/jpeg", true ); FLAC__metadata_object_picture_set_description( picture, (FLAC__byte*)"", true ); CFile picfile; picfile.Open( L"I:\\1.jpg", CFile::modeRead | CFile::shareDenyWrite); ULONGLONG dwLength = picfile.GetLength(); LPSTR pData = new char[static_cast<unsigned int>(dwLength+1)]; picfile.Read(pData, static_cast<UINT>(dwLength)); FLAC__metadata_object_picture_set_data( picture, (FLAC__byte*)pData, dwLength, true ); delete [] pData; I did some tests and it...