Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a prb. related to DirectShow using VC++ Pin
ssing7-Dec-04 20:55
ssing7-Dec-04 20:55 
GeneralRe: a prb. related to DirectShow using VC++ Pin
ssing7-Dec-04 20:59
ssing7-Dec-04 20:59 
Generalmfc Pin
sreeja777-Dec-04 19:15
sreeja777-Dec-04 19:15 
GeneralRe: mfc Pin
namaskaaram7-Dec-04 21:25
namaskaaram7-Dec-04 21:25 
GeneralDownloading a file with https URL Pin
ssing7-Dec-04 19:08
ssing7-Dec-04 19:08 
GeneralRe: Downloading a file with https URL Pin
ThatsAlok7-Dec-04 19:58
ThatsAlok7-Dec-04 19:58 
GeneralRe: Downloading a file with https URL Pin
ssing7-Dec-04 21:02
ssing7-Dec-04 21:02 
GeneralTAPI Pin
John R. Shaw7-Dec-04 16:51
John R. Shaw7-Dec-04 16:51 
GeneralRe: TAPI Pin
ThatsAlok7-Dec-04 17:13
ThatsAlok7-Dec-04 17:13 
GeneralRe: TAPI Pin
John R. Shaw7-Dec-04 18:00
John R. Shaw7-Dec-04 18:00 
GeneralRe: TAPI Pin
ThatsAlok7-Dec-04 22:15
ThatsAlok7-Dec-04 22:15 
GeneralLoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve7-Dec-04 16:50
SteQve7-Dec-04 16:50 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
Steve S7-Dec-04 23:35
Steve S7-Dec-04 23:35 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve8-Dec-04 0:04
SteQve8-Dec-04 0:04 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve8-Dec-04 0:32
SteQve8-Dec-04 0:32 
GeneralCommon handler for all dialog controls Pin
Raghunandan S7-Dec-04 16:39
Raghunandan S7-Dec-04 16:39 
GeneralRe: Common handler for all dialog controls Pin
John R. Shaw7-Dec-04 17:23
John R. Shaw7-Dec-04 17:23 
Generalmobile games Pin
bigdeeoo77-Dec-04 16:17
bigdeeoo77-Dec-04 16:17 
GeneralRe: mobile games Pin
ThatsAlok7-Dec-04 17:11
ThatsAlok7-Dec-04 17:11 
GeneralRe: mobile games Pin
parths7-Dec-04 18:41
parths7-Dec-04 18:41 
Generalwin32 console app and threading issues Pin
tung salem7-Dec-04 16:00
tung salem7-Dec-04 16:00 
GeneralRe: win32 console app and threading issues Pin
John R. Shaw7-Dec-04 18:49
John R. Shaw7-Dec-04 18:49 
GeneralUsing FindFirstFile Pin
Moochie57-Dec-04 15:31
Moochie57-Dec-04 15:31 
I am making a program that copies files with certain file extensions, such as .txt, to other directories that are created by the program.

I am having difficulty using FindFirstFile.
The problem I am having is selecting the directory and all the files with the .txt extensions.
For example, this line of code finds all the txt files in the folder where this program is:

hSearch = FindFirstFile(TEXT("*.txt"), &FileData);

But, I say I need to get all of the .txt files on my c:\txtfiles directory. What is the correct code to do that?

I have tried many things, the one that has worked best is this one.

hSearch=FindFirstFile(TEXT("c:\\txtfiles\\*.txt"),
&FileData);

However with this one if there is more than one txt file in the directory my error will say could not find text files. If I leave just one txt file in the directory it will work.

I am just looking for the correct code to copy all txt files from a directory on my c drive.

Thanks.
GeneralRe: Using FindFirstFile Pin
*Dreamz7-Dec-04 18:43
*Dreamz7-Dec-04 18:43 
GeneralRe: Using FindFirstFile Pin
fogmen7-Dec-04 19:20
fogmen7-Dec-04 19:20 

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.