Click here to Skip to main content
13,707,164 members

C / C++ / MFC

 
GeneralRe: How do we cast void type Pin
Richard MacCutchan12-Feb-18 8:24
protectorRichard MacCutchan12-Feb-18 8:24 
GeneralRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 10:01
memberVictor Nijegorodov10-Feb-18 10:01 
AnswerRe: How do we cast void type Pin
jschell10-Feb-18 6:40
memberjschell10-Feb-18 6:40 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 8:03
memberluplup10-Feb-18 8:03 
QuestionRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 8:25
memberVictor Nijegorodov10-Feb-18 8:25 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 8:32
memberluplup10-Feb-18 8:32 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 9:58
protectorRichard MacCutchan10-Feb-18 9:58 
GeneralRe: How do we cast void type Pin
jschell13-Feb-18 14:48
memberjschell13-Feb-18 14:48 
luplup wrote:
So please can you show me the right way to cast correctly


That would require a book.

You do it by understanding the data types that the pointer points to. What they represent, how they are represented in memory and what memory means in C (and computers in general) especially in relationship to the heap and the stack. And being very careful.

If you wish to learn in detail then write your own printf() function and test completely.
AnswerRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 8:39
memberVictor Nijegorodov10-Feb-18 8:39 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 8:56
memberluplup10-Feb-18 8:56 
GeneralRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 9:54
memberVictor Nijegorodov10-Feb-18 9:54 
AnswerRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 10:05
memberVictor Nijegorodov10-Feb-18 10:05 
QuestionWhat is the two-finger scroll event (MFC app)? Pin
Alan Balkany8-Feb-18 17:18
memberAlan Balkany8-Feb-18 17:18 
AnswerRe: What is the two-finger scroll event (MFC app)? Pin
Randor 8-Feb-18 20:25
professional Randor 8-Feb-18 20:25 
AnswerRe: What is the two-finger scroll event (MFC app)? Pin
Richard MacCutchan8-Feb-18 22:48
protectorRichard MacCutchan8-Feb-18 22:48 
Questionchange exe path Pin
Fedrer7-Feb-18 20:14
memberFedrer7-Feb-18 20:14 
AnswerRe: change exe path Pin
Richard MacCutchan7-Feb-18 22:11
protectorRichard MacCutchan7-Feb-18 22:11 
GeneralRe: change exe path Pin
Fedrer8-Feb-18 18:34
memberFedrer8-Feb-18 18:34 
GeneralRe: change exe path Pin
Randor 8-Feb-18 20:00
professional Randor 8-Feb-18 20:00 
GeneralRe: change exe path Pin
Richard MacCutchan8-Feb-18 22:41
protectorRichard MacCutchan8-Feb-18 22:41 
QuestionWhat IDE do you use for C/C++ development? Pin
Davide Coppola6-Feb-18 23:31
memberDavide Coppola6-Feb-18 23:31 
AnswerRe: What IDE do you use for C/C++ development? Pin
CPallini6-Feb-18 23:49
mvpCPallini6-Feb-18 23:49 
GeneralRe: What IDE do you use for C/C++ development? Pin
Davide Coppola6-Feb-18 23:52
memberDavide Coppola6-Feb-18 23:52 
QuestionRe: What IDE do you use for C/C++ development? Pin
CPallini7-Feb-18 0:00
mvpCPallini7-Feb-18 0:00 
AnswerRe: What IDE do you use for C/C++ development? Pin
Davide Coppola7-Feb-18 0:14
memberDavide Coppola7-Feb-18 0:14 

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.


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 24 Sep 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid