Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question32/64/96bit integers? Pin
Kevin Power10-Aug-01 15:23
Kevin Power10-Aug-01 15:23 
AnswerRe: 32/64/96bit integers? Pin
Wolfram Steinke10-Aug-01 16:16
Wolfram Steinke10-Aug-01 16:16 
AnswerRe: 32/64/96bit integers? Pin
Mukkie10-Aug-01 21:48
Mukkie10-Aug-01 21:48 
GeneralInternet Explorer Pin
calebcohoon10-Aug-01 14:31
calebcohoon10-Aug-01 14:31 
GeneralRegSaveKey Pin
10-Aug-01 13:47
suss10-Aug-01 13:47 
GeneralGlobals from additional files Pin
10-Aug-01 12:47
suss10-Aug-01 12:47 
Questioncreate pointers to different classes??? Pin
Bob Bain10-Aug-01 11:34
Bob Bain10-Aug-01 11:34 
AnswerRe: create pointers to different classes??? Pin
Tim Deveaux11-Aug-01 5:48
Tim Deveaux11-Aug-01 5:48 
Ok, this is not an answer - just a 'hey what a neat problem' reply. Smile | :)

The only difference between C and C++ in this area is that C++ enforces typechecking on parameters passed to a function. So you can, in C, pass a void * to a method and then let that method figure out what it is (if need be).

In C++, there's probably a few workarounds - including overloads of a fn for each type that might be received, IDing the classes in the array by first casting them to the base then retrieving an ID denoting their type etc.

I get a feeling that you could somehow modify the C code to work, involving some ugly casting, but that there's probably a creation pattern that covers this.

Hmmm...
GeneralProblem with Splitter Wnd Pin
Francis B.10-Aug-01 11:06
Francis B.10-Aug-01 11:06 
GeneralRe: Problem with Splitter Wnd Pin
10-Aug-01 11:22
suss10-Aug-01 11:22 
GeneralNeed some help Pin
Brian V Shifrin10-Aug-01 10:42
Brian V Shifrin10-Aug-01 10:42 
GeneralRe: Need some help Pin
Carlos Antollini10-Aug-01 10:56
Carlos Antollini10-Aug-01 10:56 
GeneralDuh! Pin
Brian V Shifrin10-Aug-01 11:13
Brian V Shifrin10-Aug-01 11:13 
GeneralRe: Duh! Pin
#realJSOP10-Aug-01 11:23
professional#realJSOP10-Aug-01 11:23 
GeneralRe: Need some help Pin
Derek Waters12-Aug-01 14:08
Derek Waters12-Aug-01 14:08 
Generaltons of awful errors Pin
Jake Palmer10-Aug-01 10:27
Jake Palmer10-Aug-01 10:27 
GeneralRe: tons of awful errors Pin
#realJSOP10-Aug-01 10:33
professional#realJSOP10-Aug-01 10:33 
GeneralRe: tons of awful errors Pin
Jake Palmer10-Aug-01 11:02
Jake Palmer10-Aug-01 11:02 
GeneralSource .CPP and Header .H Pin
10-Aug-01 10:06
suss10-Aug-01 10:06 
GeneralRe: Source .CPP and Header .H Pin
Carlos Antollini10-Aug-01 10:54
Carlos Antollini10-Aug-01 10:54 
GeneralRe: Source .CPP and Header .H Pin
10-Aug-01 11:50
suss10-Aug-01 11:50 
GeneralRe: Source .CPP and Header .H Pin
Carlos Antollini10-Aug-01 12:07
Carlos Antollini10-Aug-01 12:07 
GeneralRe: Source .CPP and Header .H Pin
10-Aug-01 12:14
suss10-Aug-01 12:14 
GeneralRe: Source .CPP and Header .H Pin
Stefan Pedersen11-Aug-01 14:23
Stefan Pedersen11-Aug-01 14:23 
GeneralRe: Source .CPP and Header .H Pin
Michael Dunn10-Aug-01 15:46
sitebuilderMichael Dunn10-Aug-01 15:46 

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.