Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change Background image of mesage box Pin
kilt8-Oct-09 23:39
kilt8-Oct-09 23:39 
QuestionRe: Change Background image of mesage box Pin
CPallini8-Oct-09 23:43
mveCPallini8-Oct-09 23:43 
QuestionRe: Change Background image of mesage box Pin
David Crow5-Oct-09 6:57
David Crow5-Oct-09 6:57 
AnswerRe: Change Background image of mesage box Pin
Hans Dietrich5-Oct-09 13:58
mentorHans Dietrich5-Oct-09 13:58 
QuestionCan We make ContextMenu as "sytem modal" Pin
Aabid5-Oct-09 2:01
Aabid5-Oct-09 2:01 
AnswerRe: Can We make ContextMenu as "sytem modal" Pin
Iain Clarke, Warrior Programmer5-Oct-09 8:50
Iain Clarke, Warrior Programmer5-Oct-09 8:50 
Questionproblem with sizeof() Pin
KASR15-Oct-09 1:18
KASR15-Oct-09 1:18 
AnswerRe: problem with sizeof() Pin
Rajesh R Subramanian5-Oct-09 1:23
professionalRajesh R Subramanian5-Oct-09 1:23 
KASR1 wrote:
const char* str = "C:\\Documents and Settings\\Test\\TestData";
int i = sizeof(str);

i always 4. why?


Because str is a pointer and with sizeof(str), you're NOT finding the length of the string that str is pointing to.

If you need the length of the string, use strlen (or yet better use TCHAR and _tcslen)


It is a crappy thing, but it's life -^ Carlo Pallini

GeneralRe: problem with sizeof() Pin
KASR15-Oct-09 1:54
KASR15-Oct-09 1:54 
AnswerRe: problem with sizeof() Pin
Code-o-mat5-Oct-09 1:31
Code-o-mat5-Oct-09 1:31 
GeneralRe: problem with sizeof() Pin
Nemanja Trifunovic5-Oct-09 7:23
Nemanja Trifunovic5-Oct-09 7:23 
GeneralRe: problem with sizeof() Pin
Code-o-mat5-Oct-09 8:02
Code-o-mat5-Oct-09 8:02 
AnswerRe: problem with sizeof() Pin
Cedric Moonen5-Oct-09 1:32
Cedric Moonen5-Oct-09 1:32 
AnswerRe: problem with sizeof() Pin
goonyangxiaofang5-Oct-09 1:45
goonyangxiaofang5-Oct-09 1:45 
GeneralRe: problem with sizeof() Pin
CPallini5-Oct-09 3:55
mveCPallini5-Oct-09 3:55 
GeneralRe: problem with sizeof() Pin
goonyangxiaofang5-Oct-09 18:06
goonyangxiaofang5-Oct-09 18:06 
GeneralRe: problem with sizeof() Pin
CPallini5-Oct-09 20:51
mveCPallini5-Oct-09 20:51 
QuestionHow to Implement "Show In Groups" feature in Mini Shell Extension Framework III? Pin
gurjant singh5-Oct-09 1:04
gurjant singh5-Oct-09 1:04 
AnswerRe: How to Implement "Show In Groups" feature in Mini Shell Extension Framework III? Pin
Richard MacCutchan5-Oct-09 10:38
mveRichard MacCutchan5-Oct-09 10:38 
Questionprogram crash before main Pin
hrishiS5-Oct-09 0:52
hrishiS5-Oct-09 0:52 
AnswerRe: program crash before main Pin
Code-o-mat5-Oct-09 1:28
Code-o-mat5-Oct-09 1:28 
GeneralRe: program crash before main Pin
hrishiS5-Oct-09 2:06
hrishiS5-Oct-09 2:06 
QuestionRe: program crash before main Pin
CPallini5-Oct-09 2:17
mveCPallini5-Oct-09 2:17 
AnswerRe: program crash before main Pin
benjymous5-Oct-09 4:45
benjymous5-Oct-09 4:45 
GeneralRe: program crash before main Pin
CPallini5-Oct-09 7:32
mveCPallini5-Oct-09 7:32 

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.