Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionconvert CString to LPCSTR and LPCSTR to CString ? Pin
14-Oct-01 22:34
suss14-Oct-01 22:34 
AnswerRe: convert CString to LPCSTR and LPCSTR to CString ? Pin
Daniel Visan14-Oct-01 23:00
Daniel Visan14-Oct-01 23:00 
GeneralRe: convert CString to LPCSTR and LPCSTR to CString ? Pin
14-Oct-01 23:17
suss14-Oct-01 23:17 
GeneralRe: convert CString to LPCSTR and LPCSTR to CString ? Pin
15-Oct-01 9:57
suss15-Oct-01 9:57 
QuestionHow to find out remote files? Pin
Daniel Visan14-Oct-01 21:45
Daniel Visan14-Oct-01 21:45 
AnswerRe: How to find out remote files? Pin
Michael Dunn14-Oct-01 21:56
sitebuilderMichael Dunn14-Oct-01 21:56 
AnswerSorry, stupid question... Pin
Daniel Visan14-Oct-01 22:01
Daniel Visan14-Oct-01 22:01 
GeneralRe: Sorry, stupid question... Pin
NormDroid14-Oct-01 22:12
professionalNormDroid14-Oct-01 22:12 
FindFirstFile returns a handle,

so one's code would look like this... (a snipped from my production code)

WIN32_FIND_DATA fd;
CString sQualifier = sPath;
sQualifier += _T("\\*.*");

HANDLE hFindFile = FindFirstFile(sQualifier, &fd);

BOOL bBool = hFindFile == INVALID_HANDLE_VALUE ? FALSE : TRUE;
if (!bBool)
return FALSE;

int i=0;
while (bBool)
{

if (!(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
{
listFiles.insert(FileList::value_type(fd.cFileName, fd));
i++;
}

bBool = FindNextFile(hFindFile, &fd);
}


Norm Almond
Chief Technical Architect
FS Walker Hughes Limited


GeneralRe: You missunderstood me. My fault. Pin
Daniel Visan14-Oct-01 23:27
Daniel Visan14-Oct-01 23:27 
GeneralRe: You missunderstood me. My fault. Pin
markkuk15-Oct-01 0:41
markkuk15-Oct-01 0:41 
GeneralRe: You missunderstood me. My fault. Pin
Daniel Visan15-Oct-01 1:01
Daniel Visan15-Oct-01 1:01 
AnswerA serious problem on the subject now... Pin
Daniel Visan14-Oct-01 22:38
Daniel Visan14-Oct-01 22:38 
GeneralATL Pin
14-Oct-01 21:21
suss14-Oct-01 21:21 
GeneralATL - Addition to the question Pin
14-Oct-01 22:27
suss14-Oct-01 22:27 
GeneralWhy no one answer me ? Pin
15-Oct-01 0:28
suss15-Oct-01 0:28 
GeneralRe: ATL - Addition to the question Pin
Michael P Butler15-Oct-01 1:27
Michael P Butler15-Oct-01 1:27 
Generalregistered the dll.regsvr32 Pin
15-Oct-01 2:44
suss15-Oct-01 2:44 
GeneralRe: registered the dll.regsvr32 Pin
Michael P Butler15-Oct-01 2:47
Michael P Butler15-Oct-01 2:47 
GeneralRe: registered the dll.regsvr32 Pin
Firoz15-Oct-01 2:59
Firoz15-Oct-01 2:59 
GeneralManny Manny thanks !!! The registration successed ! Pin
15-Oct-01 5:23
suss15-Oct-01 5:23 
GeneralBut I have now a new trouble with the ATL . Who can help ??? Pin
15-Oct-01 8:22
suss15-Oct-01 8:22 
QuestionHow an Edit box can cause a crash for WinXP! Pin
Robert Buldoc14-Oct-01 21:04
Robert Buldoc14-Oct-01 21:04 
AnswerRe: How an Edit box can cause a crash for WinXP! Pin
Michael P Butler15-Oct-01 3:02
Michael P Butler15-Oct-01 3:02 
QuestionHow to make a Full Screen DirectX program display in a window mode Pin
Merci14-Oct-01 20:28
Merci14-Oct-01 20:28 
QuestionHow to Increase window contents Pin
binnu14-Oct-01 18:59
binnu14-Oct-01 18: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.