Click here to Skip to main content
15,897,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CListBox Ownerdraw doesnt show selected item Pin
Iain Clarke, Warrior Programmer21-Jun-10 8:06
Iain Clarke, Warrior Programmer21-Jun-10 8:06 
AnswerRe: CListBox Ownerdraw doesnt show selected item Pin
«_Superman_»21-Jun-10 18:13
professional«_Superman_»21-Jun-10 18:13 
QuestionRGB(255,0,0) to CString name Pin
eyalle21-Jun-10 1:58
eyalle21-Jun-10 1:58 
AnswerRe: RGB(255,0,0) to CString name Pin
CPallini21-Jun-10 2:07
mveCPallini21-Jun-10 2:07 
AnswerRe: RGB(255,0,0) to CString name Pin
Nishad S21-Jun-10 17:38
Nishad S21-Jun-10 17:38 
GeneralRe: RGB(255,0,0) to CString name Pin
ThatsAlok21-Jun-10 20:11
ThatsAlok21-Jun-10 20:11 
Questionarray values Pin
Pryabu20-Jun-10 23:51
Pryabu20-Jun-10 23:51 
AnswerRe: array values Pin
Code-o-mat21-Jun-10 0:02
Code-o-mat21-Jun-10 0:02 
Well, there can be multiple answers to that, depending on your needs, what tools you have available, what environment you work in
e.g:
char sz123[10][20];
char c[20] = "test";
strcpy(sz123[0], c);
strcpy(c, "123");
or
std::string sz123[10];
char c[20] = "test";
sz123[0] = c;
strcpy(c, "123");
or
CString sz123[10];
char c[20] = "test";
sz123[0] = c;
strcpy(c, "123");
or
LPSTR sz123[10];
char c[20] = "test";
sz123[0] = (LPSTR)malloc(sizeof(c[0]) * (strlen(c) + 1));
strcpy(sz123[0], c);
strcpy(c, "123");
...
free(sz123[0]);

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <

AnswerRe: array values Pin
Cool_Dev21-Jun-10 0:07
Cool_Dev21-Jun-10 0:07 
AnswerRe: array values Pin
Aescleal21-Jun-10 0:09
Aescleal21-Jun-10 0:09 
AnswerRe: array values Pin
CPallini21-Jun-10 0:11
mveCPallini21-Jun-10 0:11 
GeneralRe: array values Pin
Pryabu21-Jun-10 1:11
Pryabu21-Jun-10 1:11 
GeneralRe: array values Pin
CPallini21-Jun-10 1:27
mveCPallini21-Jun-10 1:27 
GeneralRe: array values Pin
Pryabu21-Jun-10 1:31
Pryabu21-Jun-10 1:31 
QuestionRe: array values Pin
CPallini21-Jun-10 1:46
mveCPallini21-Jun-10 1:46 
AnswerRe: array values Pin
Pryabu21-Jun-10 1:53
Pryabu21-Jun-10 1:53 
GeneralRe: array values Pin
CPallini21-Jun-10 2:03
mveCPallini21-Jun-10 2:03 
GeneralRe: array values Pin
Pryabu21-Jun-10 2:10
Pryabu21-Jun-10 2:10 
GeneralRe: array values Pin
Richard MacCutchan21-Jun-10 4:30
mveRichard MacCutchan21-Jun-10 4:30 
GeneralRe: array values Pin
Pryabu21-Jun-10 1:44
Pryabu21-Jun-10 1:44 
GeneralRe: array values Pin
CPallini21-Jun-10 1:52
mveCPallini21-Jun-10 1:52 
QuestionCombobox catching enter event Pin
Sakhalean20-Jun-10 23:16
Sakhalean20-Jun-10 23:16 
AnswerRe: Combobox catching enter event Pin
Code-o-mat20-Jun-10 23:24
Code-o-mat20-Jun-10 23:24 
GeneralRe: Combobox catching enter event Pin
Sakhalean20-Jun-10 23:48
Sakhalean20-Jun-10 23:48 
GeneralRe: Combobox catching enter event Pin
Code-o-mat20-Jun-10 23:51
Code-o-mat20-Jun-10 23:51 

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.