Click here to Skip to main content
15,923,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFloodFill question Pin
ForNow16-Jun-10 5:04
ForNow16-Jun-10 5:04 
AnswerRe: FloodFill question Pin
Chris Losinger16-Jun-10 5:39
professionalChris Losinger16-Jun-10 5:39 
AnswerRe: FloodFill question Pin
Niklas L16-Jun-10 6:27
Niklas L16-Jun-10 6:27 
Questionbetter linear algebra Pin
VeganFanatic16-Jun-10 5:03
VeganFanatic16-Jun-10 5:03 
QuestionNew In c and c++. Downloading data from a server Pin
Eli Nurman16-Jun-10 4:26
Eli Nurman16-Jun-10 4:26 
AnswerRe: New In c and c++. Downloading data from a server Pin
Maximilien16-Jun-10 4:46
Maximilien16-Jun-10 4:46 
GeneralRe: New In c and c++. Downloading data from a server Pin
Eli Nurman16-Jun-10 6:14
Eli Nurman16-Jun-10 6:14 
GeneralRe: New In c and c++. Downloading data from a server Pin
Maximilien16-Jun-10 6:56
Maximilien16-Jun-10 6:56 
AnswerRe: New In c and c++. Downloading data from a server Pin
David Crow16-Jun-10 5:10
David Crow16-Jun-10 5:10 
AnswerRe: New In c and c++. Downloading data from a server Pin
Aescleal16-Jun-10 7:48
Aescleal16-Jun-10 7:48 
AnswerRe: New In c and c++. Downloading data from a server Pin
ThatsAlok17-Jun-10 0:00
ThatsAlok17-Jun-10 0:00 
GeneralRe: New In c and c++. Downloading data from a server Pin
Eli Nurman17-Jun-10 1:37
Eli Nurman17-Jun-10 1:37 
Questionimplicit cast between pointers Pin
Iosif Murariu16-Jun-10 3:01
Iosif Murariu16-Jun-10 3:01 
AnswerRe: implicit cast between pointers PinPopular
Cedric Moonen16-Jun-10 3:06
Cedric Moonen16-Jun-10 3:06 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 3:11
Iosif Murariu16-Jun-10 3:11 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 3:13
Iosif Murariu16-Jun-10 3:13 
GeneralRe: implicit cast between pointers Pin
CPallini16-Jun-10 3:19
mveCPallini16-Jun-10 3:19 
GeneralRe: implicit cast between pointers Pin
Cedric Moonen16-Jun-10 3:20
Cedric Moonen16-Jun-10 3:20 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 3:30
Iosif Murariu16-Jun-10 3:30 
GeneralRe: implicit cast between pointers Pin
Cedric Moonen16-Jun-10 3:39
Cedric Moonen16-Jun-10 3:39 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 3:42
Iosif Murariu16-Jun-10 3:42 
GeneralRe: implicit cast between pointers Pin
Cedric Moonen16-Jun-10 3:50
Cedric Moonen16-Jun-10 3:50 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 3:58
Iosif Murariu16-Jun-10 3:58 
both platforms coincidentaly have the same functions in classes and so on, so our design works. only the class names differ. the design works(tested), we just need to get rid of the explicit casts.

more specifically, in our code we use something like:

#ifdef PLATFORM1
class A : protected AfromPlatform1
#else
class A : protected AfromPlatform2
#endif
{
void f();
}

void A::f()
{
#ifdef PLATFORM1
AfromPlatform1::f();
#else
AfromPlatform2::f();
#endif
}


This works, trust me, as I said before, it's tested.
AnswerRe: implicit cast between pointers Pin
CPallini16-Jun-10 3:15
mveCPallini16-Jun-10 3:15 
AnswerRe: implicit cast between pointers Pin
Nemanja Trifunovic16-Jun-10 4:12
Nemanja Trifunovic16-Jun-10 4:12 

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.