Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC UI Thread vs. Background Thread Pin
Richard Andrew x6423-Jun-12 8:31
professionalRichard Andrew x6423-Jun-12 8:31 
AnswerRe: MFC UI Thread vs. Background Thread Pin
Vitaly Tomilov23-Jun-12 13:17
Vitaly Tomilov23-Jun-12 13:17 
AnswerRe: MFC UI Thread vs. Background Thread Pin
fat_boy23-Jun-12 23:55
fat_boy23-Jun-12 23:55 
QuestionA Simple C++ Question. Pin
Sivaraman Dhamodharan22-Jun-12 4:19
Sivaraman Dhamodharan22-Jun-12 4:19 
AnswerRe: A Simple C++ Question. Pin
David Crow22-Jun-12 4:47
David Crow22-Jun-12 4:47 
GeneralRe: A Simple C++ Question. Pin
Sivaraman Dhamodharan26-Jun-12 0:51
Sivaraman Dhamodharan26-Jun-12 0:51 
AnswerRe: A Simple C++ Question. PinPopular
Albert Holguin22-Jun-12 5:05
professionalAlbert Holguin22-Jun-12 5:05 
AnswerRe: A Simple C++ Question. Pin
Maximilien22-Jun-12 5:26
Maximilien22-Jun-12 5:26 
You are trying to modify a const char array (pointer).

This is not C++.

if you were writing proper C++, you would not get those problems (or a lot less likely).

std::string name = "some name";
std::cout << name << std::endl;

std::string name2 = "some name";
std::cout << name2 << std::endl;

name2[1] = 'a'; // need to check that the index is within the string size.
std::cout << name2 << std::endl;

Watched code never compiles.

AnswerRe: A Simple C++ Question. Pin
Chuck O'Toole22-Jun-12 8:21
Chuck O'Toole22-Jun-12 8:21 
GeneralRe: A Simple C++ Question. Pin
jschell22-Jun-12 13:01
jschell22-Jun-12 13:01 
AnswerRe: A Simple C++ Question. Pin
Chuck O'Toole23-Jun-12 8:58
Chuck O'Toole23-Jun-12 8:58 
GeneralRe: A Simple C++ Question. Pin
jschell24-Jun-12 12:06
jschell24-Jun-12 12:06 
AnswerRe: A Simple C++ Question. Pin
Chuck O'Toole24-Jun-12 13:29
Chuck O'Toole24-Jun-12 13:29 
GeneralRe: A Simple C++ Question. Pin
jschell25-Jun-12 9:33
jschell25-Jun-12 9:33 
GeneralRe: A Simple C++ Question. Pin
Aescleal23-Jun-12 7:36
Aescleal23-Jun-12 7:36 
AnswerRe: A Simple C++ Question. Pin
Chuck O'Toole23-Jun-12 8:58
Chuck O'Toole23-Jun-12 8:58 
GeneralRe: A Simple C++ Question. Pin
Albert Holguin22-Jun-12 10:05
professionalAlbert Holguin22-Jun-12 10:05 
QuestionList of driver compilers Pin
Brandon-X1200021-Jun-12 22:37
Brandon-X1200021-Jun-12 22:37 
AnswerRe: List of driver compilers Pin
Richard MacCutchan22-Jun-12 1:29
mveRichard MacCutchan22-Jun-12 1:29 
GeneralRe: List of driver compilers Pin
Brandon-X1200022-Jun-12 17:23
Brandon-X1200022-Jun-12 17:23 
GeneralRe: List of driver compilers Pin
Richard MacCutchan22-Jun-12 22:24
mveRichard MacCutchan22-Jun-12 22:24 
GeneralRe: List of driver compilers Pin
Brandon-X1200023-Jun-12 13:26
Brandon-X1200023-Jun-12 13:26 
GeneralRe: List of driver compilers Pin
Richard MacCutchan24-Jun-12 0:16
mveRichard MacCutchan24-Jun-12 0:16 
GeneralRe: List of driver compilers Pin
fat_boy22-Jun-12 23:31
fat_boy22-Jun-12 23:31 
GeneralRe: List of driver compilers Pin
Brandon-X1200023-Jun-12 14:10
Brandon-X1200023-Jun-12 14:10 

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.