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

C / C++ / MFC

 
AnswerRe: strcpy Pin
Smith#3-Feb-09 21:53
Smith#3-Feb-09 21:53 
GeneralRe: strcpy Pin
hrishiS3-Feb-09 22:37
hrishiS3-Feb-09 22:37 
Questiondisplying of latest data from an XML on the list control. [modified] Pin
brucewayn3-Feb-09 20:54
brucewayn3-Feb-09 20:54 
AnswerRe: displying of latest data from an XML on the list control. Pin
Stuart Dootson3-Feb-09 21:23
professionalStuart Dootson3-Feb-09 21:23 
Questionstuck with a trivia Pin
Smith#3-Feb-09 20:39
Smith#3-Feb-09 20:39 
AnswerRe: stuck with a trivia Pin
cmk3-Feb-09 21:04
cmk3-Feb-09 21:04 
GeneralRe: stuck with a trivia Pin
Smith#3-Feb-09 21:19
Smith#3-Feb-09 21:19 
AnswerRe: stuck with a trivia Pin
«_Superman_»3-Feb-09 21:10
professional«_Superman_»3-Feb-09 21:10 
py2 is an address.
The contents of py2 are 0, 1, 2, 3.
Agreed ?

pyp2 is a pointer to a pointer.
pyp2 is initialized with the address of py2.
Now when you say *pyp2 it is taking the first value of 0 which it thinks is another address.
So, **pyp2 is trying to read the value at address 0. // Crash

If the contents of py2 were 5, 6, 7, 8,
**pyp2 will be trying to read the value at address 5. // Still Crash.

«_Superman_»

GeneralRe: stuck with a trivia Pin
Smith#3-Feb-09 21:25
Smith#3-Feb-09 21:25 
GeneralRe: stuck with a trivia Pin
«_Superman_»3-Feb-09 21:27
professional«_Superman_»3-Feb-09 21:27 
GeneralRe: stuck with a trivia Pin
Smith#3-Feb-09 21:42
Smith#3-Feb-09 21:42 
GeneralRe: stuck with a trivia Pin
«_Superman_»3-Feb-09 21:52
professional«_Superman_»3-Feb-09 21:52 
GeneralRe: stuck with a trivia Pin
Smith#3-Feb-09 21:58
Smith#3-Feb-09 21:58 
GeneralRe: stuck with a trivia Pin
«_Superman_»3-Feb-09 22:03
professional«_Superman_»3-Feb-09 22:03 
GeneralRe: stuck with a trivia Pin
Smith#3-Feb-09 22:20
Smith#3-Feb-09 22:20 
AnswerRe: stuck with a trivia Pin
Stuart Dootson3-Feb-09 21:12
professionalStuart Dootson3-Feb-09 21:12 
GeneralRe: stuck with a trivia [modified] Pin
Smith#3-Feb-09 21:24
Smith#3-Feb-09 21:24 
GeneralRe: stuck with a trivia Pin
Stuart Dootson3-Feb-09 22:01
professionalStuart Dootson3-Feb-09 22:01 
GeneralRe: stuck with a trivia Pin
Smith#3-Feb-09 22:14
Smith#3-Feb-09 22:14 
GeneralRe: stuck with a trivia Pin
Smith#3-Feb-09 22:18
Smith#3-Feb-09 22:18 
AnswerRe: stuck with a trivia Pin
Emilio Garavaglia3-Feb-09 23:13
Emilio Garavaglia3-Feb-09 23:13 
GeneralRe: stuck with a trivia Pin
Smith#4-Feb-09 7:44
Smith#4-Feb-09 7:44 
GeneralRe: stuck with a trivia [modified] Pin
Emilio Garavaglia4-Feb-09 21:32
Emilio Garavaglia4-Feb-09 21:32 
GeneralRe: stuck with a trivia Pin
Smith#7-Feb-09 16:13
Smith#7-Feb-09 16:13 
GeneralRe: stuck with a trivia Pin
Emilio Garavaglia4-Feb-09 21:52
Emilio Garavaglia4-Feb-09 21:52 

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.