Click here to Skip to main content
13,795,145 members

C / C++ / MFC

 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 10:54
protectorRichard MacCutchan10-Feb-18 10:54 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 12:35
memberluplup10-Feb-18 12:35 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 22:18
protectorRichard MacCutchan10-Feb-18 22:18 
AnswerRe: How do we cast void type Pin
luplup12-Feb-18 9:00
memberluplup12-Feb-18 9:00 
GeneralRe: How do we cast void type Pin
jeron112-Feb-18 9:06
memberjeron112-Feb-18 9:06 
GeneralRe: How do we cast void type Pin
Richard MacCutchan12-Feb-18 9:24
protectorRichard MacCutchan12-Feb-18 9:24 
GeneralRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 11:01
memberVictor Nijegorodov10-Feb-18 11:01 
AnswerRe: How do we cast void type Pin
jschell10-Feb-18 7:40
memberjschell10-Feb-18 7:40 
You are NOT using cast correctly.

You must NOT cast types to different types. Just take that rule as an absolute until you have been programming in C/C++ for about 5 years.

Besides other problems in your code you are taking a "short int" and treating it like an "int". That is wrong.
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 9:03
memberluplup10-Feb-18 9:03 
QuestionRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 9:25
memberVictor Nijegorodov10-Feb-18 9:25 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 9:32
memberluplup10-Feb-18 9:32 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 10:58
protectorRichard MacCutchan10-Feb-18 10:58 
GeneralRe: How do we cast void type Pin
jschell13-Feb-18 15:48
memberjschell13-Feb-18 15:48 
AnswerRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 9:39
memberVictor Nijegorodov10-Feb-18 9:39 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 9:56
memberluplup10-Feb-18 9:56 
GeneralRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 10:54
memberVictor Nijegorodov10-Feb-18 10:54 
AnswerRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 11:05
memberVictor Nijegorodov10-Feb-18 11:05 
QuestionWhat is the two-finger scroll event (MFC app)? Pin
Alan Balkany8-Feb-18 18:18
memberAlan Balkany8-Feb-18 18:18 
AnswerRe: What is the two-finger scroll event (MFC app)? Pin
Randor 8-Feb-18 21:25
professional Randor 8-Feb-18 21:25 
AnswerRe: What is the two-finger scroll event (MFC app)? Pin
Richard MacCutchan8-Feb-18 23:48
protectorRichard MacCutchan8-Feb-18 23:48 
Questionchange exe path Pin
Fedrer7-Feb-18 21:14
memberFedrer7-Feb-18 21:14 
AnswerRe: change exe path Pin
Richard MacCutchan7-Feb-18 23:11
protectorRichard MacCutchan7-Feb-18 23:11 
GeneralRe: change exe path Pin
Fedrer8-Feb-18 19:34
memberFedrer8-Feb-18 19:34 
GeneralRe: change exe path Pin
Randor 8-Feb-18 21:00
professional Randor 8-Feb-18 21:00 
GeneralRe: change exe path Pin
Richard MacCutchan8-Feb-18 23:41
protectorRichard MacCutchan8-Feb-18 23:41 

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
Web02 | 2.8.181207.3 | Last Updated 11 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid