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

C / C++ / MFC

 
QuestionRe: Opening terminal windows from command line app Pin
David Crow21-Mar-08 10:41
David Crow21-Mar-08 10:41 
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 
Adding to other reply, since your class is already a list why you create a list in other forms (char *, string, vector) every time in the function call getFileNames() instead giving functioality to the class to get element of list will be useful.

class FILELIST
{
int size(); // returns number of elements in list
char *getName(int pos); // return the string corresponding to position in list.

// iterator
char *getFirst();
char *getNext();
};

or how about making use of STL itself;
typedef vector<string> FILELIST; or 
typedef vector<char *> FILELIST;
or
class FILELIST: public vector<string>


modified on Friday, March 21, 2008 9:44 AM

GeneralRe: Naming suggestion Pin
Capitanevs21-Mar-08 4:43
Capitanevs21-Mar-08 4:43 
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 

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.