Using CfileFind and it will not link
//#define macros here
BOOL bWorking = finder.FindFile("*.*");
bWorking = finder.FindNextFile();
cout << (LPCTSTR) finder.GetFileName() << endl;
When I try to build an executable the program gives me the following errors
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
I am using Microsoft Visual 5.0 C++
What do I need to do I have tried for two days to make this work the sample code comes directly from the help file.
of Zen Hall
I'm not sure of the exact settings for MSVC 5.0, but you need to link with the multi-threaded libraries (something like project/settings,c/c++ tab, code generation) and specifiy in your project settings that you are using MFC (either using the dll's or static library).