Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGDI Text Input Control Required Urgently.. Pin
zeemalik24-Jan-07 2:50
zeemalik24-Jan-07 2:50 
AnswerRe: GDI Text Input Control Required Urgently.. Pin
Mark Salsbery24-Jan-07 5:39
Mark Salsbery24-Jan-07 5:39 
Questionbased pointer crashed my app Pin
Alex Cutovoi24-Jan-07 2:09
Alex Cutovoi24-Jan-07 2:09 
AnswerRe: based pointer crashed my app Pin
KarstenK24-Jan-07 2:27
mveKarstenK24-Jan-07 2:27 
GeneralRe: based pointer crashed my app Pin
toxcct24-Jan-07 2:30
toxcct24-Jan-07 2:30 
GeneralRe: based pointer crashed my app Pin
KarstenK24-Jan-07 4:35
mveKarstenK24-Jan-07 4:35 
GeneralRe: based pointer crashed my app Pin
toxcct24-Jan-07 4:39
toxcct24-Jan-07 4:39 
GeneralRe: based pointer crashed my app Pin
Alex Cutovoi24-Jan-07 2:38
Alex Cutovoi24-Jan-07 2:38 
In a site(www.flounder.com), I read this:
"The problem of storing pointers is a little bit misleading. You must not store pointers in the structure you pass, even if they are pointers into the same area you are passing, because when the message is received the recipient has no control over where it is placed, and the pointers are likely to be nonsense. Obviously, you can't store pointers to other areas of your own memory because they will be completely nonsensical in the receiving process; they will be interpreted in its own address space.

But the misleading aspect is that if you have a structure which is entirely self-contained in the data area you are sending over (that is, every pointer refers to another structure in the area you are sending), then you can use based pointers to encode them. Based pointers are actually relative offsets measured from a specific starting point (such as the start of the area being transmitted), and are automatically adjusted by the recipient (as long as you set up the correct base value) so they are valid pointers."

So I have a based pointer in my class that is the same type of the class. This pointer must have to arrive(I think) to the other window safetly.
toxcct, if I use new I lose the control over the pointer in the other window.
GeneralRe: based pointer crashed my app Pin
KarstenK24-Jan-07 4:37
mveKarstenK24-Jan-07 4:37 
GeneralRe: based pointer crashed my app Pin
Mark Salsbery24-Jan-07 5:54
Mark Salsbery24-Jan-07 5:54 
QuestionRe: based pointer crashed my app Pin
David Crow24-Jan-07 4:17
David Crow24-Jan-07 4:17 
AnswerRe: based pointer crashed my app Pin
Alex Cutovoi24-Jan-07 6:00
Alex Cutovoi24-Jan-07 6:00 
QuestionRe: based pointer crashed my app Pin
David Crow24-Jan-07 7:01
David Crow24-Jan-07 7:01 
AnswerRe: based pointer crashed my app Pin
Alex Cutovoi24-Jan-07 8:10
Alex Cutovoi24-Jan-07 8:10 
GeneralRe: based pointer crashed my app Pin
David Crow24-Jan-07 8:37
David Crow24-Jan-07 8:37 
AnswerRe: based pointer crashed my app Pin
Michael Dunn24-Jan-07 9:34
sitebuilderMichael Dunn24-Jan-07 9:34 
GeneralRe: based pointer crashed my app Pin
Alex Cutovoi24-Jan-07 11:40
Alex Cutovoi24-Jan-07 11:40 
GeneralRe: based pointer crashed my app Pin
Michael Dunn24-Jan-07 12:37
sitebuilderMichael Dunn24-Jan-07 12:37 
GeneralRe: based pointer crashed my app Pin
Alex Cutovoi25-Jan-07 16:34
Alex Cutovoi25-Jan-07 16:34 
QuestionComputing hashes and comparing hashes for C++ Pin
vgandhi24-Jan-07 2:05
vgandhi24-Jan-07 2:05 
AnswerRe: Computing hashes and comparing hashes for C++ Pin
James R. Twine24-Jan-07 7:28
James R. Twine24-Jan-07 7:28 
GeneralRe: Computing hashes and comparing hashes for C++ Pin
vgandhi24-Jan-07 8:09
vgandhi24-Jan-07 8:09 
GeneralRe: Computing hashes and comparing hashes for C++ Pin
James R. Twine24-Jan-07 11:14
James R. Twine24-Jan-07 11:14 
GeneralRe: Computing hashes and comparing hashes for C++ Pin
vgandhi24-Jan-07 20:35
vgandhi24-Jan-07 20:35 
AnswerRe: Computing hashes and comparing hashes for C++ Pin
Michael Dunn24-Jan-07 9:36
sitebuilderMichael Dunn24-Jan-07 9:36 

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.