Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Difference between C++ and VC++ Pin
hrishiS16-Sep-09 1:04
hrishiS16-Sep-09 1:04 
QuestionHow to load a file in help ? Pin
deadlyabbas15-Sep-09 20:31
deadlyabbas15-Sep-09 20:31 
AnswerRe: How to load a file in help ? Pin
Iain Clarke, Warrior Programmer15-Sep-09 21:06
Iain Clarke, Warrior Programmer15-Sep-09 21:06 
AnswerRe: How to load a file in help ? Pin
Iain Clarke, Warrior Programmer15-Sep-09 21:08
Iain Clarke, Warrior Programmer15-Sep-09 21:08 
QuestionHow to open a long filename in quotes Pin
Erik15-Sep-09 20:20
Erik15-Sep-09 20:20 
AnswerRe: How to open a long filename in quotes Pin
Cedric Moonen15-Sep-09 20:29
Cedric Moonen15-Sep-09 20:29 
AnswerRe: How to open a long filename in quotes Pin
Stuart Dootson16-Sep-09 0:33
professionalStuart Dootson16-Sep-09 0:33 
QuestionHow to load a file in help? Pin
deadlyabbas15-Sep-09 20:14
deadlyabbas15-Sep-09 20:14 
AnswerRe: How to load a file in help? Pin
CPallini15-Sep-09 20:58
mveCPallini15-Sep-09 20:58 
QuestionRS232 communication in VC++ 6.0 Pin
diptipanchal15-Sep-09 19:26
diptipanchal15-Sep-09 19:26 
AnswerRe: RS232 communication in VC++ 6.0 Pin
Cedric Moonen15-Sep-09 20:27
Cedric Moonen15-Sep-09 20:27 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Neil Urquhart15-Sep-09 21:12
Neil Urquhart15-Sep-09 21:12 
GeneralRe: RS232 communication in VC++ 6.0 Pin
diptipanchal15-Sep-09 21:59
diptipanchal15-Sep-09 21:59 
AnswerRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 21:11
Iain Clarke, Warrior Programmer15-Sep-09 21:11 
GeneralRe: RS232 communication in VC++ 6.0 Pin
CPallini15-Sep-09 21:22
mveCPallini15-Sep-09 21:22 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 21:51
Iain Clarke, Warrior Programmer15-Sep-09 21:51 
GeneralRe: RS232 communication in VC++ 6.0 Pin
CPallini15-Sep-09 21:57
mveCPallini15-Sep-09 21:57 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 22:13
Iain Clarke, Warrior Programmer15-Sep-09 22:13 
GeneralRe: RS232 communication in VC++ 6.0 Pin
CPallini15-Sep-09 22:20
mveCPallini15-Sep-09 22:20 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 22:52
Iain Clarke, Warrior Programmer15-Sep-09 22:52 
QuestionHow to use order by clause in insert into statement Pin
jadhavjitendrar15-Sep-09 19:23
jadhavjitendrar15-Sep-09 19:23 
AnswerRe: How to use order by clause in insert into statement Pin
«_Superman_»15-Sep-09 19:31
professional«_Superman_»15-Sep-09 19:31 
AnswerRe: How to use order by clause in insert into statement Pin
CPallini15-Sep-09 21:08
mveCPallini15-Sep-09 21:08 
QuestionCompiler Design in C Pin
DarkSorrow3815-Sep-09 19:05
DarkSorrow3815-Sep-09 19:05 
AnswerRe: Compiler Design in C Pin
«_Superman_»15-Sep-09 19:28
professional«_Superman_»15-Sep-09 19:28 
You could create an array of pointers if you know the value of n at compile time.
char *strings[50];


Now as you save each string to this array allocate the size.
strings[count] = malloc(sizeof(string) + 1);
strcpy(strings[count], string);


If the value of n is not known at compile time, create a pointer to a pointer.
char **strings;


When you get the value of n, allocate the array.
*strings = malloc(sizeof(char*) * n);


Allocation for each string is the same as above.
Don't forget to increment the count variable after to store every string.

«_Superman
I love work. It gives me something to do between weekends.

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.