Click here to Skip to main content
15,886,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can someone explain this please Pin
David Crow27-Jan-05 5:25
David Crow27-Jan-05 5:25 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 5:34
Tom Wright27-Jan-05 5:34 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 5:38
professionalChris Losinger27-Jan-05 5:38 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 5:44
Tom Wright27-Jan-05 5:44 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 5:51
professionalChris Losinger27-Jan-05 5:51 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 10:48
Tom Wright27-Jan-05 10:48 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 10:55
professionalChris Losinger27-Jan-05 10:55 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 11:09
Tom Wright27-Jan-05 11:09 
I'm trying to setup a Timer in my UI thread. While doing this I found that the easiest way was to do the SetTimer with the forth parameter being the callback function.

Problem is that I've never really worked with callback function and while working with this particular one I found that i did not have access to m_pconnection pointer and the thdID pointer.

I remembered that someone had helped me with another program that did a casting of a pointer like the one listed at the beginning of the post, but i wasn't sure if this is what I needed to do here and since i didn't really understand what was happening with that line of code I decided to post.

So comming full circle I'm still trying to understand when one needs to cast a pointer and when one needs to pass a pointer.


Heck I just found out how to initialize a char array on the fly (so to speak) using the new operator. I've always seen it used but never understood why until it was explained to me.

Thanks


Tom Wright
tawright915@yahoo.com
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 12:07
professionalChris Losinger27-Jan-05 12:07 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 5:42
David Crow27-Jan-05 5:42 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 5:49
Tom Wright27-Jan-05 5:49 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 5:53
David Crow27-Jan-05 5:53 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 10:26
Tom Wright27-Jan-05 10:26 
GeneralDocument order Pin
vineas27-Jan-05 4:33
vineas27-Jan-05 4:33 
GeneralRe: Document order Pin
Neville Franks27-Jan-05 5:57
Neville Franks27-Jan-05 5:57 
GeneralRe: Document order Pin
vineas27-Jan-05 6:31
vineas27-Jan-05 6:31 
Generalmodulus error result Pin
mytz27-Jan-05 3:05
mytz27-Jan-05 3:05 
GeneralRe: modulus error result Pin
Chris Losinger27-Jan-05 3:16
professionalChris Losinger27-Jan-05 3:16 
GeneralRe: modulus error result Pin
Antony M Kancidrowski27-Jan-05 3:17
Antony M Kancidrowski27-Jan-05 3:17 
GeneralRe: modulus error result Pin
Maximilien27-Jan-05 3:17
Maximilien27-Jan-05 3:17 
Generalmodulus prob Pin
mytz27-Jan-05 3:00
mytz27-Jan-05 3:00 
GeneralRe: modulus prob Pin
Chris Losinger27-Jan-05 3:05
professionalChris Losinger27-Jan-05 3:05 
Generalcann't complie .c files in vc++ 6.0 Pin
vikram yadav27-Jan-05 2:38
vikram yadav27-Jan-05 2:38 
GeneralRe: cann't complie .c files in vc++ 6.0 Pin
David Crow27-Jan-05 2:46
David Crow27-Jan-05 2:46 
GeneralRe: cann't complie .c files in vc++ 6.0 Pin
Bob Ciora27-Jan-05 6:10
Bob Ciora27-Jan-05 6:10 

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.