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

C / C++ / MFC

 
GeneralRe: WriteProfileString Pin
PS@Codeproj5-Apr-07 0:50
PS@Codeproj5-Apr-07 0:50 
GeneralRe: WriteProfileString Pin
Rajesh R Subramanian5-Apr-07 1:09
professionalRajesh R Subramanian5-Apr-07 1:09 
GeneralRe: WriteProfileString Pin
TpB11-May-10 6:52
TpB11-May-10 6:52 
QuestionRe: WriteProfileString Pin
Kiran Pinjala5-Apr-07 0:25
Kiran Pinjala5-Apr-07 0:25 
AnswerRe: WriteProfileString Pin
Rajesh R Subramanian5-Apr-07 0:34
professionalRajesh R Subramanian5-Apr-07 0:34 
QuestionDisable pause/break key in console application Pin
yccheok4-Apr-07 23:17
yccheok4-Apr-07 23:17 
QuestionHow to implement array of strings Pin
yaminisridaran4-Apr-07 22:53
yaminisridaran4-Apr-07 22:53 
AnswerRe: How to implement array of strings Pin
CPallini4-Apr-07 23:03
mveCPallini4-Apr-07 23:03 
Whith MFC, you can use

CString sMyStrings[5];

(or use a CArray to dynamically handle the strings).

Using STL, you can declare

std::string sMyStrings[5];

(or use a std::vector< std::string > to dynamically...)

Using plain C++, a string is nothing more than a (zero terminated) chunk of chars, hence
char * sMyStrings[5];
sMyString[0]="foo";
...


may fit your needs.

Smile | :)



If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: How to implement array of strings Pin
yaminisridaran6-Apr-07 18:29
yaminisridaran6-Apr-07 18:29 
QuestionMemory leak in ADO CreateParameter Pin
voorugonda prashanth4-Apr-07 21:20
voorugonda prashanth4-Apr-07 21:20 
AnswerRe: Memory leak in ADO CreateParameter Pin
Dmitry Khudorozhkov4-Apr-07 23:15
Dmitry Khudorozhkov4-Apr-07 23:15 
QuestionStill need a bit of help please Pin
planetx224-Apr-07 21:14
planetx224-Apr-07 21:14 
AnswerRe: Still need a bit of help please Pin
Nibu babu thomas4-Apr-07 21:27
Nibu babu thomas4-Apr-07 21:27 
GeneralRe: Still need a bit of help please Pin
planetx224-Apr-07 21:31
planetx224-Apr-07 21:31 
GeneralRe: Still need a bit of help please Pin
Nibu babu thomas4-Apr-07 21:35
Nibu babu thomas4-Apr-07 21:35 
GeneralRe: Still need a bit of help please Pin
planetx224-Apr-07 21:55
planetx224-Apr-07 21:55 
GeneralRe: Still need a bit of help please Pin
David Crow5-Apr-07 3:09
David Crow5-Apr-07 3:09 
QuestionWhy does WM_PAINT exclude DrawItem? Pin
zouchao11124-Apr-07 20:51
zouchao11124-Apr-07 20:51 
AnswerRe: Why does WM_PAINT exclude DrawItem? Pin
Nibu babu thomas4-Apr-07 21:37
Nibu babu thomas4-Apr-07 21:37 
QuestionListCtrl header height in report view Pin
Nishad S4-Apr-07 20:20
Nishad S4-Apr-07 20:20 
QuestionRe: ListCtrl header height in report view Pin
Nibu babu thomas4-Apr-07 20:31
Nibu babu thomas4-Apr-07 20:31 
AnswerRe: ListCtrl header height in report view Pin
Nishad S4-Apr-07 20:36
Nishad S4-Apr-07 20:36 
GeneralRe: ListCtrl header height in report view Pin
Nibu babu thomas4-Apr-07 20:54
Nibu babu thomas4-Apr-07 20:54 
AnswerRe: ListCtrl header height in report view Pin
Naveen4-Apr-07 20:52
Naveen4-Apr-07 20:52 
GeneralRe: ListCtrl header height in report view [modified] Pin
Nishad S4-Apr-07 21:05
Nishad S4-Apr-07 21: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.