Click here to Skip to main content
15,909,242 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to make an exe Pin
Cedric Moonen12-Sep-06 0:53
Cedric Moonen12-Sep-06 0:53 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:02
vc++_fragrance12-Sep-06 1:02 
GeneralRe: How to make an exe Pin
Hamid_RT12-Sep-06 1:28
Hamid_RT12-Sep-06 1:28 
AnswerRe: How to make an exe Pin
prasad_som12-Sep-06 0:55
prasad_som12-Sep-06 0:55 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:05
vc++_fragrance12-Sep-06 1:05 
GeneralRe: How to make an exe Pin
prasad_som12-Sep-06 1:40
prasad_som12-Sep-06 1:40 
GeneralRe: How to make an exe Pin
vc++_fragrance13-Sep-06 1:44
vc++_fragrance13-Sep-06 1:44 
GeneralRe: How to make an exe Pin
prasad_som13-Sep-06 1:53
prasad_som13-Sep-06 1:53 
GeneralRe: How to make an exe Pin
vc++_fragrance13-Sep-06 2:07
vc++_fragrance13-Sep-06 2:07 
AnswerRe: How to make an exe Pin
Nibu babu thomas12-Sep-06 1:04
Nibu babu thomas12-Sep-06 1:04 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:16
vc++_fragrance12-Sep-06 1:16 
GeneralRe: How to make an exe Pin
Nibu babu thomas12-Sep-06 1:19
Nibu babu thomas12-Sep-06 1:19 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:20
vc++_fragrance12-Sep-06 1:20 
GeneralRe: How to make an exe Pin
Hamid_RT12-Sep-06 1:31
Hamid_RT12-Sep-06 1:31 
AnswerRe: How to make an exe Pin
toxcct12-Sep-06 1:18
toxcct12-Sep-06 1:18 
AnswerRe: How to make an exe Pin
A_Fa12-Sep-06 1:21
A_Fa12-Sep-06 1:21 
GeneralRe: How to make an exe Pin
toxcct12-Sep-06 1:27
toxcct12-Sep-06 1:27 
GeneralRe: How to make an exe Pin
Emilio Garavaglia12-Sep-06 2:08
Emilio Garavaglia12-Sep-06 2:08 
AnswerRe: How to make an exe Pin
David Crow12-Sep-06 7:23
David Crow12-Sep-06 7:23 
Questionchar * query [modified] Pin
prasad_som12-Sep-06 0:44
prasad_som12-Sep-06 0:44 
AnswerRe: char * query Pin
Sebastian Schneider12-Sep-06 0:57
Sebastian Schneider12-Sep-06 0:57 
GeneralRe: char * query Pin
prasad_som12-Sep-06 1:08
prasad_som12-Sep-06 1:08 
AnswerRe: char * query Pin
Defenestration12-Sep-06 1:15
Defenestration12-Sep-06 1:15 
Because *str is a pointer to a string constant "test", and not an array of characters.

The pointer *str can be made to point to a different location, but the contents of a string constant cannot be changed (the ANSI C Standard actually says trying to modify the contents of string constant is undefined - ie. sometimes it might work, other times it may not - so you should never be writing code like this)

Writing the following would work because str would be an array of characters. The contents of the array could be changed, but str will always refer to the same storage.

chat str[] = "test";

str[0] = c;


GeneralRe: char * query Pin
prasad_som12-Sep-06 1:36
prasad_som12-Sep-06 1:36 
AnswerRe: char * query Pin
Nibu babu thomas12-Sep-06 1:24
Nibu babu thomas12-Sep-06 1:24 

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.