Click here to Skip to main content
15,906,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 4:19
Iosif Murariu16-Jun-10 4:19 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 4:23
Iosif Murariu16-Jun-10 4:23 
AnswerRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 4:46
Iosif Murariu16-Jun-10 4:46 
GeneralRe: implicit cast between pointers Pin
CPallini16-Jun-10 6:11
mveCPallini16-Jun-10 6:11 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 20:25
Iosif Murariu16-Jun-10 20:25 
GeneralRe: implicit cast between pointers Pin
Aescleal16-Jun-10 7:45
Aescleal16-Jun-10 7:45 
GeneralRe: implicit cast between pointers Pin
Iosif Murariu16-Jun-10 20:27
Iosif Murariu16-Jun-10 20:27 
GeneralRe: implicit cast between pointers [modified] Pin
Aescleal16-Jun-10 22:37
Aescleal16-Jun-10 22:37 
QuestionPointer and Reference Pin
T.RATHA KRISHNAN16-Jun-10 2:51
T.RATHA KRISHNAN16-Jun-10 2:51 
AnswerRe: Pointer and Reference Pin
Cedric Moonen16-Jun-10 2:54
Cedric Moonen16-Jun-10 2:54 
QuestionRe: Pointer and Reference Pin
T.RATHA KRISHNAN16-Jun-10 3:05
T.RATHA KRISHNAN16-Jun-10 3:05 
AnswerRe: Pointer and Reference Pin
Cedric Moonen16-Jun-10 3:08
Cedric Moonen16-Jun-10 3:08 
QuestionReflecting programmatically changed RTL reading order on CEdit control Pin
katreddi.lakshmi16-Jun-10 2:03
katreddi.lakshmi16-Jun-10 2:03 
AnswerRe: Reflecting programmatically changed RTL reading order on CEdit control Pin
katreddi.lakshmi20-Jun-10 20:19
katreddi.lakshmi20-Jun-10 20:19 
Questionhow to load texture on a circle in open GL Pin
nearest15-Jun-10 22:27
nearest15-Jun-10 22:27 

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.