Click here to Skip to main content
15,915,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OK, This is a tricky one! Pin
Masaaki Onishi28-Nov-01 17:34
Masaaki Onishi28-Nov-01 17:34 
GeneralI think, I'm an idiot .... Pin
Karavaev Denis28-Nov-01 17:47
Karavaev Denis28-Nov-01 17:47 
GeneralRe: I think, I'm an idiot .... Pin
Masaaki Onishi28-Nov-01 18:44
Masaaki Onishi28-Nov-01 18:44 
GeneralRe: I think, I'm an idiot .... Pin
Karavaev Denis28-Nov-01 19:01
Karavaev Denis28-Nov-01 19:01 
GeneralRe: I think, I'm an idiot .... Pin
Nish Nishant28-Nov-01 18:45
sitebuilderNish Nishant28-Nov-01 18:45 
GeneralRe: Ooops, I forgot to say... Pin
Masaaki Onishi29-Nov-01 7:03
Masaaki Onishi29-Nov-01 7:03 
Generalgt Pin
28-Nov-01 5:34
suss28-Nov-01 5:34 
GeneralCFileDialog and CFile::Open Pin
RobJones28-Nov-01 5:23
RobJones28-Nov-01 5:23 
Hello,
In the following code, I open a MP3 and read the last 128 bytes of information (to see if the MP3 has a ID3 tag).. This code works fine most of the time.. I click the open button on my app which calls this function.. it works 95% of the time, but every now and then it gives me an error.. "an unnamed file was not found", the file does exist and its in the same directory as all the previous files that I have opened.. if I move or copy the file to another location and try to open it, it opens fine.. weird! Any ideas why??

CFileDialog MP3(TRUE,NULL,NULL,OFN_HIDEREADONLY,"MP3 Files (*.mp3)|*.mp3|");
	
	if(MP3.DoModal() == IDOK)
	{
		strPath = MP3.GetPathName();
		
		ID3TAG.Open(strPath, CFile::modeRead);
		ID3TAG.Seek(-128,CFile::end);
		ID3TAG.Read(tagData,128); //after this line I do a bunch of other stuff with the data..


Thanks,
Rob
GeneralRe: CFileDialog and CFile::Open Pin
Nish Nishant28-Nov-01 5:26
sitebuilderNish Nishant28-Nov-01 5:26 
GeneralRe: CFileDialog and CFile::Open Pin
RobJones28-Nov-01 5:38
RobJones28-Nov-01 5:38 
GeneralRe: CFileDialog and CFile::Open Pin
RobJones28-Nov-01 6:35
RobJones28-Nov-01 6:35 
GeneralRe: CFileDialog and CFile::Open Pin
RobJones28-Nov-01 9:19
RobJones28-Nov-01 9:19 
GeneralRe: CFileDialog and CFile::Open Pin
28-Nov-01 14:27
suss28-Nov-01 14:27 
GeneralGetDiskFreeSpaceEx Pin
RickyC28-Nov-01 5:22
RickyC28-Nov-01 5:22 
GeneralRe: GetDiskFreeSpaceEx Pin
Jon Hulatt28-Nov-01 5:47
Jon Hulatt28-Nov-01 5:47 
GeneralRe: GetDiskFreeSpaceEx Pin
Nish Nishant28-Nov-01 5:53
sitebuilderNish Nishant28-Nov-01 5:53 
GeneralRe: GetDiskFreeSpaceEx Pin
RickyC28-Nov-01 6:19
RickyC28-Nov-01 6:19 
GeneralRe: GetDiskFreeSpaceEx Pin
Michael Dunn28-Nov-01 8:34
sitebuilderMichael Dunn28-Nov-01 8:34 
GeneralRe: GetDiskFreeSpaceEx Pin
jerry0davis19-Mar-02 0:19
jerry0davis19-Mar-02 0:19 
GeneralRe: GetDiskFreeSpaceEx Pin
Nish Nishant19-Mar-02 0:49
sitebuilderNish Nishant19-Mar-02 0:49 
GeneralRe: GetDiskFreeSpaceEx Pin
jerry0davis19-Mar-02 0:47
jerry0davis19-Mar-02 0:47 
GeneralDialog Pin
Peter Liddle28-Nov-01 4:33
Peter Liddle28-Nov-01 4:33 
GeneralRe: Dialog Pin
Nish Nishant28-Nov-01 4:35
sitebuilderNish Nishant28-Nov-01 4:35 
GeneralRe: Dialog Pin
Carlos Antollini28-Nov-01 4:36
Carlos Antollini28-Nov-01 4:36 
GeneralRe: Dialog Pin
Peter Liddle28-Nov-01 4:59
Peter Liddle28-Nov-01 4:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.