Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUngroup Excel columns Pin
Mugdha_Aditya12-Sep-10 19:23
Mugdha_Aditya12-Sep-10 19:23 
AnswerRe: Ungroup Excel columns Pin
Niklas L13-Sep-10 2:23
Niklas L13-Sep-10 2:23 
GeneralRe: Ungroup Excel columns Pin
Mugdha_Aditya13-Sep-10 3:32
Mugdha_Aditya13-Sep-10 3:32 
QuestionChoosing files from a directory Pin
Danzy8312-Sep-10 11:36
Danzy8312-Sep-10 11:36 
AnswerRe: Choosing files from a directory Pin
Luc Pattyn12-Sep-10 12:03
sitebuilderLuc Pattyn12-Sep-10 12:03 
GeneralRe: Choosing files from a directory Pin
Danzy8312-Sep-10 12:58
Danzy8312-Sep-10 12:58 
GeneralRe: Choosing files from a directory Pin
Luc Pattyn12-Sep-10 13:04
sitebuilderLuc Pattyn12-Sep-10 13:04 
GeneralRe: Choosing files from a directory Pin
Danzy8312-Sep-10 13:40
Danzy8312-Sep-10 13:40 
In a way to get rid of the '.' and "..", I have added the following code:

while (findData.cFileName[0] == '.' || findData.cFileName == "..")
{
    FindNextFile(handle, &findData);
}


Although it's working, I don't know if it is efficient to do it like this. The loop is executed after FindFirstFile() has been called and its return value checked not to be INVALID_HANDLE_VALUE. When the loop breaks, the &findData has its member cFileName pointing to one of the files in the directory.
GeneralRe: Choosing files from a directory Pin
Luc Pattyn12-Sep-10 13:57
sitebuilderLuc Pattyn12-Sep-10 13:57 
GeneralRe: Choosing files from a directory Pin
Danzy8312-Sep-10 14:12
Danzy8312-Sep-10 14:12 
GeneralRe: Choosing files from a directory Pin
Richard MacCutchan12-Sep-10 23:06
mveRichard MacCutchan12-Sep-10 23:06 
GeneralRe: Choosing files from a directory Pin
Rick York13-Sep-10 6:42
mveRick York13-Sep-10 6:42 
GeneralRe: Choosing files from a directory Pin
Richard MacCutchan13-Sep-10 9:17
mveRichard MacCutchan13-Sep-10 9:17 
AnswerRe: Choosing files from a directory Pin
«_Superman_»12-Sep-10 18:45
professional«_Superman_»12-Sep-10 18:45 
QuestionHow to move buttons to the left side? Pin
coolhem11-Sep-10 15:40
coolhem11-Sep-10 15:40 
AnswerRe: How to move buttons to the left side? Pin
Code-o-mat12-Sep-10 22:31
Code-o-mat12-Sep-10 22:31 
AnswerRe: How to move buttons to the left side? Pin
Eugen Podsypalnikov13-Sep-10 0:32
Eugen Podsypalnikov13-Sep-10 0:32 
GeneralRe: How to move buttons to the left side? Pin
coolhem13-Sep-10 4:34
coolhem13-Sep-10 4:34 
GeneralRe: How to move buttons to the left side? Pin
Eugen Podsypalnikov13-Sep-10 5:14
Eugen Podsypalnikov13-Sep-10 5:14 
QuestionHow to tile multiple windows in a single view Pin
Vaclav_11-Sep-10 8:59
Vaclav_11-Sep-10 8:59 
AnswerRe: How to tile multiple windows in a single view Pin
ShanghaiDan11-Sep-10 9:57
ShanghaiDan11-Sep-10 9:57 
AnswerRe: How to tile multiple windows in a single view Pin
«_Superman_»12-Sep-10 18:50
professional«_Superman_»12-Sep-10 18:50 
GeneralRe: How to tile multiple windows in a single view - SOLVED Pin
Vaclav_13-Sep-10 2:39
Vaclav_13-Sep-10 2:39 
QuestionReference to a pointer question Pin
VentsyV10-Sep-10 11:43
VentsyV10-Sep-10 11:43 
AnswerRe: Reference to a pointer question Pin
MicroVirus10-Sep-10 12:53
MicroVirus10-Sep-10 12:53 

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.