Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: char * query Pin
prasad_som12-Sep-06 1:37
prasad_som12-Sep-06 1:37 
AnswerRe: char * query Pin
Zac Howland12-Sep-06 4:24
Zac Howland12-Sep-06 4:24 
GeneralRe: char * query Pin
prasad_som12-Sep-06 18:56
prasad_som12-Sep-06 18:56 
QuestionFetching records in Bulk Pin
Bravoone_200612-Sep-06 0:30
Bravoone_200612-Sep-06 0:30 
AnswerRe: Fetching records in Bulk Pin
toxcct12-Sep-06 0:33
toxcct12-Sep-06 0:33 
GeneralRe: Fetching records in Bulk Pin
Hamid_RT12-Sep-06 1:43
Hamid_RT12-Sep-06 1:43 
GeneralRe: Fetching records in Bulk Pin
toxcct12-Sep-06 1:50
toxcct12-Sep-06 1:50 
GeneralRe: Fetching records in Bulk Pin
Hamid_RT12-Sep-06 2:04
Hamid_RT12-Sep-06 2:04 
GeneralRe: Fetching records in Bulk Pin
toxcct12-Sep-06 2:42
toxcct12-Sep-06 2:42 
GeneralRe: Fetching records in Bulk Pin
Hamid_RT12-Sep-06 2:50
Hamid_RT12-Sep-06 2:50 
AnswerRe: Fetching records in Bulk Pin
Hamid_RT13-Sep-06 8:10
Hamid_RT13-Sep-06 8:10 
Questionproblem with resource file Pin
sunil kumar verma12-Sep-06 0:06
sunil kumar verma12-Sep-06 0:06 
AnswerRe: problem with resource file Pin
Waldermort12-Sep-06 0:19
Waldermort12-Sep-06 0:19 
AnswerRe: problem with resource file Pin
Hamid_RT12-Sep-06 2:13
Hamid_RT12-Sep-06 2:13 
QuestionRe: problem with resource file Pin
David Crow12-Sep-06 7:27
David Crow12-Sep-06 7:27 

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.