Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with Array of char* Pin
CPallini18-Feb-09 3:18
mveCPallini18-Feb-09 3:18 
GeneralRe: Problem with Array of char* Pin
Arman S.18-Feb-09 2:03
Arman S.18-Feb-09 2:03 
QuestionRe: Problem with Array of char* Pin
David Crow18-Feb-09 3:19
David Crow18-Feb-09 3:19 
AnswerRe: Problem with Array of char* Pin
error140818-Feb-09 5:25
error140818-Feb-09 5:25 
GeneralRe: Problem with Array of char* Pin
David Crow18-Feb-09 5:30
David Crow18-Feb-09 5:30 
GeneralRe: Problem with Array of char* Pin
error140818-Feb-09 6:00
error140818-Feb-09 6:00 
GeneralRe: Problem with Array of char* Pin
David Crow18-Feb-09 6:06
David Crow18-Feb-09 6:06 
GeneralRe: Problem with Array of char* Pin
ilostmyid218-Feb-09 19:32
professionalilostmyid218-Feb-09 19:32 
i agree with the pallini's solution and also david gave a good description. string literals r located in a const part of memory which is not writable. this is why arrays don't cause crash. they're located in heap or stack based on whether u allocate them or use local variables which r both writable parts of memory.
there's an API function to determine whether a block of memory or a string is const named AfxIsValidAddress. it may also test whether the block is writable. but if i were u, i would use _strdup anyway, and would pass the arg as const for the caller to make sure that the original version of the passed string is not altered.
QuestionHow to change the column order or position? Pin
mikert_200817-Feb-09 23:53
mikert_200817-Feb-09 23:53 
AnswerRe: How to change the column order or position? Pin
David Crow18-Feb-09 3:21
David Crow18-Feb-09 3:21 
Questionsaving list control data in a string Pin
brucewayn17-Feb-09 23:48
brucewayn17-Feb-09 23:48 
AnswerRe: saving list control data in a string Pin
«_Superman_»17-Feb-09 23:58
professional«_Superman_»17-Feb-09 23:58 
AnswerRe: saving list control data in a string Pin
Sarath C18-Feb-09 0:08
Sarath C18-Feb-09 0:08 
QuestionRe: saving list control data in a string Pin
brucewayn18-Feb-09 0:21
brucewayn18-Feb-09 0:21 
AnswerRe: saving list control data in a string Pin
Sarath C18-Feb-09 0:28
Sarath C18-Feb-09 0:28 
QuestionSuppressing dialog UI in a property sheet Pin
Mushtaque Nizamani17-Feb-09 23:28
Mushtaque Nizamani17-Feb-09 23:28 
AnswerRe: Suppressing dialog UI in a property sheet Pin
«_Superman_»17-Feb-09 23:42
professional«_Superman_»17-Feb-09 23:42 
GeneralRe: Suppressing dialog UI in a property sheet Pin
Mushtaque Nizamani18-Feb-09 0:02
Mushtaque Nizamani18-Feb-09 0:02 
AnswerRe: Suppressing dialog UI in a property sheet Pin
_AnsHUMAN_ 18-Feb-09 0:14
_AnsHUMAN_ 18-Feb-09 0:14 
QuestionProblem passing an array of UDT from Excel VBA to a C++ dll Pin
eight17-Feb-09 23:28
eight17-Feb-09 23:28 
AnswerRe: Problem passing an array of UDT from Excel VBA to a C++ dll Pin
dishaagrawal8-Dec-09 5:49
dishaagrawal8-Dec-09 5:49 
QuestionUnable to print Images in ListBox Pin
hemlat17-Feb-09 22:21
hemlat17-Feb-09 22:21 
AnswerRe: Unable to print Images in ListBox Pin
Iain Clarke, Warrior Programmer17-Feb-09 22:58
Iain Clarke, Warrior Programmer17-Feb-09 22:58 
GeneralRe: Unable to print Images in ListBox Pin
hemlat17-Feb-09 23:16
hemlat17-Feb-09 23:16 
GeneralRe: Unable to print Images in ListBox Pin
Iain Clarke, Warrior Programmer17-Feb-09 23:20
Iain Clarke, Warrior Programmer17-Feb-09 23:20 

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.