Click here to Skip to main content
15,798,150 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Default Stack Size Pin
ForNow11-Feb-18 8:13
ForNow11-Feb-18 8:13 
Questionsmoothing issue Pin
Member 1367132810-Feb-18 2:59
Member 1367132810-Feb-18 2:59 
AnswerRe: smoothing issue Pin
phil.o10-Feb-18 5:57
professionalphil.o10-Feb-18 5:57 
GeneralRe: smoothing issue Pin
Member 1367132810-Feb-18 6:04
Member 1367132810-Feb-18 6:04 
QuestionHow do we cast void type Pin
luplup9-Feb-18 15:46
luplup9-Feb-18 15:46 
AnswerRe: How do we cast void type Pin
Richard MacCutchan9-Feb-18 22:49
mveRichard MacCutchan9-Feb-18 22:49 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 8:15
luplup10-Feb-18 8:15 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 10:54
mveRichard MacCutchan10-Feb-18 10:54 
You misunderstand the problem I'm afraid. Using a void pointer makes no difference, as your pointers will still point to different types. For example:
C++
void calc(void* pvoid)
{
    int value = *(int*)pvoid:
    // what happens if pvoid points to a floating point value?
}

GeneralRe: How do we cast void type Pin
luplup10-Feb-18 12:35
luplup10-Feb-18 12:35 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 22:18
mveRichard MacCutchan10-Feb-18 22:18 
AnswerRe: How do we cast void type Pin
luplup12-Feb-18 9:00
luplup12-Feb-18 9:00 
GeneralRe: How do we cast void type Pin
jeron112-Feb-18 9:06
jeron112-Feb-18 9:06 
GeneralRe: How do we cast void type Pin
Richard MacCutchan12-Feb-18 9:24
mveRichard MacCutchan12-Feb-18 9:24 
GeneralRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 11:01
Victor Nijegorodov10-Feb-18 11:01 
AnswerRe: How do we cast void type Pin
jschell10-Feb-18 7:40
jschell10-Feb-18 7:40 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 9:03
luplup10-Feb-18 9:03 
QuestionRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 9:25
Victor Nijegorodov10-Feb-18 9:25 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 9:32
luplup10-Feb-18 9:32 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 10:58
mveRichard MacCutchan10-Feb-18 10:58 
GeneralRe: How do we cast void type Pin
jschell13-Feb-18 15:48
jschell13-Feb-18 15:48 
AnswerRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 9:39
Victor Nijegorodov10-Feb-18 9:39 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 9:56
luplup10-Feb-18 9:56 
GeneralRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 10:54
Victor Nijegorodov10-Feb-18 10:54 
AnswerRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 11:05
Victor Nijegorodov10-Feb-18 11:05 
QuestionWhat is the two-finger scroll event (MFC app)? Pin
Alan Balkany8-Feb-18 18:18
Alan Balkany8-Feb-18 18:18 

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.