Click here to Skip to main content
15,889,863 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opening terminal windows from command line app Pin
malaugh21-Mar-08 11:54
malaugh21-Mar-08 11:54 
QuestionWindows file sharing Pin
Member 241965021-Mar-08 4:21
Member 241965021-Mar-08 4:21 
QuestionRe: Windows file sharing Pin
David Crow21-Mar-08 4:30
David Crow21-Mar-08 4:30 
GeneralRe: Windows file sharing Pin
Member 241965025-Mar-08 10:43
Member 241965025-Mar-08 10:43 
GeneralNaming suggestion Pin
Capitanevs21-Mar-08 2:59
Capitanevs21-Mar-08 2:59 
QuestionRe: Naming suggestion Pin
David Crow21-Mar-08 3:13
David Crow21-Mar-08 3:13 
GeneralRe: Naming suggestion [modified] Pin
Rajkumar R21-Mar-08 3:38
Rajkumar R21-Mar-08 3:38 
GeneralRe: Naming suggestion Pin
Capitanevs21-Mar-08 4:43
Capitanevs21-Mar-08 4:43 
Yeah, your observation is right.

Actually, my FILELIST class is substantially based on the private variable
vector<cfileinfo></cfileinfo> files, where CFILEINFO is the class I use to store info about files.

I often need to retrieve quickly a string containing all the files in the list, with a certain format,
e.g.

"c:\goofy\nc:\mickeymouse\n" and so on.

The ideas were

1) Create a FILELIST class, in which functions like char* = getFileNames() were included

2) Create public functions that wanted as argument a vector, so like char* = getFileNames(const vector<cfileinfo> files)</cfileinfo>

I didn't know what the best solution was, even because I haven't a very complete plan of my project, at the moment.
I chose the first one.


Now, if I think about the idea proposed by DadivCrow, the use of a class like in 1) would be the best, 'cuz I can overload functions. If I use main functions, I couldn't overload them like

getFileName(const vector<cfileinfo> &myFiles, char* myList) ;<br />
getFileName(const vector<cfileinfo> &myFiles, vector<string> myList) ;</string></cfileinfo></cfileinfo>


So, I think I'll use solution #1) with DavidCrow suggestion.

What do you think?







GeneralRe: Naming suggestion Pin
Capitanevs21-Mar-08 5:46
Capitanevs21-Mar-08 5:46 
GeneralRe: Naming suggestion Pin
David Crow21-Mar-08 5:59
David Crow21-Mar-08 5:59 
GeneralRe: Naming suggestion Pin
Rajkumar R21-Mar-08 9:45
Rajkumar R21-Mar-08 9:45 
GeneralRe: Naming suggestion Pin
Capitanevs22-Mar-08 6:15
Capitanevs22-Mar-08 6:15 
Generalcannot typecast short datatype to long datatype Pin
Member 447883321-Mar-08 2:55
Member 447883321-Mar-08 2:55 
GeneralRe: cannot typecast short datatype to long datatype Pin
Capitanevs21-Mar-08 3:08
Capitanevs21-Mar-08 3:08 
GeneralRe: cannot typecast short datatype to long datatype Pin
Cedric Moonen21-Mar-08 3:20
Cedric Moonen21-Mar-08 3:20 
GeneralRe: cannot typecast short datatype to long datatype Pin
Member 447883323-Mar-08 23:12
Member 447883323-Mar-08 23:12 
QuestionRe: cannot typecast short datatype to long datatype Pin
David Crow21-Mar-08 3:20
David Crow21-Mar-08 3:20 
GeneralRe: cannot typecast short datatype to long datatype Pin
CPallini21-Mar-08 6:58
mveCPallini21-Mar-08 6:58 
QuestionMapping the Windows XP APIs to Linux Pin
IamPoojaa21-Mar-08 2:17
IamPoojaa21-Mar-08 2:17 
GeneralRe: Mapping the Windows XP APIs to Linux Pin
Cedric Moonen21-Mar-08 2:34
Cedric Moonen21-Mar-08 2:34 
GeneralRe: Mapping the Windows XP APIs to Linux Pin
IamPoojaa23-Mar-08 19:56
IamPoojaa23-Mar-08 19:56 
GeneralRe: Mapping the Windows XP APIs to Linux Pin
malaugh21-Mar-08 7:31
malaugh21-Mar-08 7:31 
GeneralRe: Mapping the Windows XP APIs to Linux Pin
IamPoojaa23-Mar-08 19:51
IamPoojaa23-Mar-08 19:51 
GeneralPath-parts naming conventions. Pin
Capitanevs21-Mar-08 2:05
Capitanevs21-Mar-08 2:05 
QuestionRe: Path-parts naming conventions. Pin
CPallini21-Mar-08 7:14
mveCPallini21-Mar-08 7:14 

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.