Click here to Skip to main content
15,920,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: casting between pointers Pin
«_Superman_»16-Jun-10 21:43
professional«_Superman_»16-Jun-10 21:43 
GeneralRe: casting between pointers Pin
Iosif Murariu16-Jun-10 21:50
Iosif Murariu16-Jun-10 21:50 
GeneralRe: casting between pointers Pin
«_Superman_»16-Jun-10 22:05
professional«_Superman_»16-Jun-10 22:05 
GeneralRe: casting between pointers Pin
Iosif Murariu16-Jun-10 22:10
Iosif Murariu16-Jun-10 22:10 
AnswerRe: casting between pointers Pin
Stephen Hewitt16-Jun-10 21:56
Stephen Hewitt16-Jun-10 21:56 
AnswerRe: casting between pointers Pin
Code-o-mat16-Jun-10 22:08
Code-o-mat16-Jun-10 22:08 
GeneralRe: casting between pointers Pin
Iosif Murariu16-Jun-10 22:11
Iosif Murariu16-Jun-10 22:11 
GeneralRe: casting between pointers Pin
Code-o-mat16-Jun-10 22:52
Code-o-mat16-Jun-10 22:52 
An ugly solution but you could write "wrapper" methods that do the explicit conversations and call the originals, so if you have:
int f(A *pA) {}

then you could create
int f(B *pB) { return f((A *)pB); }

Of course i do not know what exactly you are trying to achieve so this might or might not solve your problem. And even if it does, you'd have to do this kind of crap for every method you want to use so i supose it's not a comfortable solution at all...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers don't kill programs, users kill programs <
> "It doesn't work, fix it" does not qualify as a bug report. <

AnswerRe: casting between pointers [modified] Pin
Aescleal16-Jun-10 22:29
Aescleal16-Jun-10 22:29 
GeneralRe: casting between pointers Pin
Iosif Murariu16-Jun-10 22:39
Iosif Murariu16-Jun-10 22:39 
GeneralRe: casting between pointers Pin
Aescleal16-Jun-10 22:58
Aescleal16-Jun-10 22:58 
AnswerRe: casting between pointers Pin
Tim Craig17-Jun-10 18:08
Tim Craig17-Jun-10 18:08 
QuestionDirect2D - printing / create windows meta file Pin
thomas1234516-Jun-10 21:26
thomas1234516-Jun-10 21:26 
AnswerRe: Direct2D - printing / create windows meta file Pin
salvapatuel230-Jun-10 6:41
salvapatuel230-Jun-10 6:41 
QuestionPDF Creation Pin
Pryabu16-Jun-10 20:35
Pryabu16-Jun-10 20:35 
AnswerRe: PDF Creation Pin
«_Superman_»16-Jun-10 20:51
professional«_Superman_»16-Jun-10 20:51 
GeneralRe: PDF Creation Pin
Pryabu16-Jun-10 21:12
Pryabu16-Jun-10 21:12 
AnswerRe: PDF Creation Pin
mesajflaviu17-Jun-10 5:52
mesajflaviu17-Jun-10 5:52 
QuestionEncrypt text using java and decrypt using C Pin
Murugan k16-Jun-10 19:36
Murugan k16-Jun-10 19:36 
AnswerRe: Encrypt text using java and decrypt using C PinPopular
Cedric Moonen16-Jun-10 20:12
Cedric Moonen16-Jun-10 20:12 
QuestionRe: Encrypt text using java and decrypt using C Pin
Niklas L16-Jun-10 20:39
Niklas L16-Jun-10 20:39 
AnswerRe: Encrypt text using java and decrypt using C Pin
Moak17-Jun-10 10:49
Moak17-Jun-10 10:49 
GeneralRe: Encrypt text using java and decrypt using C Pin
Niklas L17-Jun-10 11:18
Niklas L17-Jun-10 11:18 
AnswerRe: Encrypt text using java and decrypt using C Pin
Aescleal16-Jun-10 22:43
Aescleal16-Jun-10 22:43 
AnswerRe: Encrypt text using java and decrypt using C Pin
ThatsAlok16-Jun-10 23:54
ThatsAlok16-Jun-10 23:54 

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.