Use FindFirstFile and FindNextFile. The WIN32_FIND_DATA member dwFileAttributes will tell you if the file is a directory. Cheers, Ronald.
rwilmink
Posts
-
get all folder names ? -
show one column extra in CListControlI would change the m_list.GetStyle() to m_list.GetExtendedStyle() Gr Ronald
-
Compare recorded speech (with FFT?)For language teaching a student hears a word and then repeats it. That gives me two wave-files, the first is my own, the second the one recorded by the student. That one will probably start end end with noise, of which I don't know the amplitude. The noise may also contain peaks (dropping a pen on the desk). I can't determine the exact start and end of the spoken word because of possible peaks and because the word may start and end 'under' the noise level. I must compare the two waves, which are in two short-int arrays, to see if the student pronounced the word correctly, based on rhithm, pitch and stress. So, 'rotor' in reply to 'motor' would be correct, but 'rotter' would not. Comparing the content of the waves doesn't work, so now I am wondering if using FFT might be the solution. I have tried WaveInFFT, processing the two arrays the same way and dispaying them in the same way, but do not see a resemblance between the two graphs. I hope someone can point me in the right direction. Ronald Wilmink (Netherlands)
modified on Friday, April 10, 2009 9:32 AM
-
conversion from 'double' to 'unsigned int',Hi, your double num1 contains the number of chars you want to read from pFile. Since you always want to read a whole number of chars, change double num1 to int num1, and your problem is over. Ronald.
-
CTime 32 bit/64 bitPorting an MFC app from VS6 to VS2005 gives a CTime problem: we have binary historic files in which CTime is stored as 4 bytes, in VS2005 CTime is 8 bytes. I need to convert a 64bit CTime to 32bit CTime and vice versa. OR i need a 32bit CTime object. I now get errors like 'cannot convert from ATL::CTime to __time32_t or long etc. Ronald
-
parametersCCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); cmdInfo.m_strFileName now contains the commandline.
-
Deleting modeless property sheetNo, I can't, all kinds of problems with cyclic includes.
-
Deleting modeless property sheetThe pages are first created on the heap and then added to the sheet (sheet->AddPage(pPage)). I delete the sheet and the pages with 'delete this' in PostNCDestroy. When a page has not been openened (by clicking the tab) PostNCDestroy is not called so the page is not deleted from the heap.
-
Deleting modeless property sheetHi all, I have a modeless property sheet with three pages. The pages are deleted in PostNCDestroy. However, when a page has not been opened when the sheet is closed, PostNCDestroy for that page is not called, causing memory leaks. How do I solve this? Ronald
-
EXE to ServiceHello All, does anyone know how I can run a MFC Executable as a Windows-service? It is a program that periodically checks for a file, an if found processes it and writes results to another file, so it has no user interface. Thanks, Ronald Wilmink.
-
EXE to ServiceHello All, does anyone know how I can run a MFC Executable as a Windows-service? It is a program that periodically checks for a file, and if found processes it and writes results to another file, so it has no user interface. Thanks, Ronald Wilmink.