Click here to Skip to main content
15,914,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow you size your views? Pin
baerten17-Apr-07 23:11
baerten17-Apr-07 23:11 
AnswerRe: How you size your views? Pin
Mark Salsbery18-Apr-07 6:28
Mark Salsbery18-Apr-07 6:28 
GeneralRe: How you size your views? Pin
baerten18-Apr-07 21:26
baerten18-Apr-07 21:26 
GeneralRe: How you size your views? Pin
Mark Salsbery19-Apr-07 8:07
Mark Salsbery19-Apr-07 8:07 
GeneralRe: How you size your views? Pin
baerten19-Apr-07 23:10
baerten19-Apr-07 23:10 
GeneralRe: How you size your views? Pin
Mark Salsbery20-Apr-07 7:26
Mark Salsbery20-Apr-07 7:26 
Question_splitpath Issue Pin
Programm3r17-Apr-07 22:54
Programm3r17-Apr-07 22:54 
AnswerRe: _splitpath Issue Pin
Cedric Moonen17-Apr-07 23:21
Cedric Moonen17-Apr-07 23:21 
Instead of copying the pointer, you should copy the contents of the pointer. updpathbuff will always point at the same memory location, so if you store this pointer in an array and then you write something else in it, the contents of the pointer in the array will also change (because both pointers point at the same memory location). So, what you should do is use strcpy to copy the contents in a new pointer. But you should be carefull doing this: the pointer where you copy the data should be valid and the allocated memory should be big enough to accept the data.
I highly suggest that you copy the content in a std::string instead, so you'll get rid of all the problems of memory management.


Cédric Moonen
Software developer

Charting control [v1.2 - Updated]

GeneralRe: _splitpath Issue Pin
Programm3r18-Apr-07 0:49
Programm3r18-Apr-07 0:49 
QuestionWhere to create font and set it to owner drawn menu Pin
Atul2317-Apr-07 22:48
Atul2317-Apr-07 22:48 
AnswerRe: Where to create font and set it to owner drawn menu Pin
Hamid_RT18-Apr-07 1:41
Hamid_RT18-Apr-07 1:41 
Questioncolor of a button Pin
p_17-Apr-07 22:20
p_17-Apr-07 22:20 
AnswerRe: color of a button Pin
Hamid_RT17-Apr-07 22:22
Hamid_RT17-Apr-07 22:22 
GeneralRe: color of a button Pin
p_17-Apr-07 22:34
p_17-Apr-07 22:34 
GeneralRe: color of a button Pin
Hamid_RT18-Apr-07 1:28
Hamid_RT18-Apr-07 1:28 
GeneralRe: color of a button Pin
Hamid_RT18-Apr-07 1:32
Hamid_RT18-Apr-07 1:32 
GeneralRe: color of a button Pin
Mark Salsbery18-Apr-07 6:29
Mark Salsbery18-Apr-07 6:29 
QuestionDeclare Friend with a template class in Visual C++ 2005 Pin
Nacho Chip17-Apr-07 21:39
Nacho Chip17-Apr-07 21:39 
QuestionThe file contains a character that cannot be represented in the current code page Pin
Nacho Chip17-Apr-07 21:34
Nacho Chip17-Apr-07 21:34 
AnswerRe: The file contains a character that cannot be represented in the current code page Pin
Rajesh R Subramanian17-Apr-07 21:39
professionalRajesh R Subramanian17-Apr-07 21:39 
GeneralRe: The file contains a character that cannot be represented in the current code page Pin
Nacho Chip17-Apr-07 21:41
Nacho Chip17-Apr-07 21:41 
GeneralRe: The file contains a character that cannot be represented in the current code page Pin
Rajesh R Subramanian17-Apr-07 21:46
professionalRajesh R Subramanian17-Apr-07 21:46 
AnswerRe: The file contains a character that cannot be represented in the current code page Pin
Hamid_RT17-Apr-07 21:51
Hamid_RT17-Apr-07 21:51 
QuestionHelp on "XXX" in MMC menu not wroking Pin
mahanagarjuna17-Apr-07 21:12
mahanagarjuna17-Apr-07 21:12 
QuestionHow do i change the internet explorer settings programatically Pin
vishnuteja17-Apr-07 21:10
vishnuteja17-Apr-07 21: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.