Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dead windows in MFC Pin
jhwurmbach31-Jul-03 1:20
jhwurmbach31-Jul-03 1:20 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor31-Jul-03 1:23
BoudewijnEctor31-Jul-03 1:23 
GeneralRe: Dead windows in MFC Pin
jhwurmbach31-Jul-03 1:29
jhwurmbach31-Jul-03 1:29 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor31-Jul-03 1:53
BoudewijnEctor31-Jul-03 1:53 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor31-Jul-03 2:01
BoudewijnEctor31-Jul-03 2:01 
GeneralRe: Dead windows in MFC Pin
Ravi Bhavnani31-Jul-03 2:38
professionalRavi Bhavnani31-Jul-03 2:38 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor1-Aug-03 0:43
BoudewijnEctor1-Aug-03 0:43 
GeneralRe: Dead windows in MFC Pin
Ravi Bhavnani1-Aug-03 4:17
professionalRavi Bhavnani1-Aug-03 4:17 
GeneralI don't wanna record same information again Pin
Emre Zorlu31-Jul-03 0:47
Emre Zorlu31-Jul-03 0:47 
GeneralRe: I don't wanna record same information again Pin
Rage31-Jul-03 0:56
professionalRage31-Jul-03 0:56 
GeneralRe: I don't wanna record same information again Pin
Emre Zorlu31-Jul-03 1:00
Emre Zorlu31-Jul-03 1:00 
GeneralXp vs. NT Pin
Rage31-Jul-03 0:39
professionalRage31-Jul-03 0:39 
GeneralRe: Xp vs. NT Pin
Chris Richardson31-Jul-03 8:28
Chris Richardson31-Jul-03 8:28 
GeneralRe: Xp vs. NT Pin
Mathias S.19-Aug-03 4:20
Mathias S.19-Aug-03 4:20 
GeneralFlush cin Pin
Andrew Walker30-Jul-03 23:54
Andrew Walker30-Jul-03 23:54 
GeneralRe: Flush cin Pin
Ryan Binns31-Jul-03 1:09
Ryan Binns31-Jul-03 1:09 
GeneralRe: Flush cin Pin
John R. Shaw31-Jul-03 9:24
John R. Shaw31-Jul-03 9:24 
GeneralRe: Flush cin Pin
Andrew Walker31-Jul-03 11:32
Andrew Walker31-Jul-03 11:32 
GeneralAbout a function declaration Pin
FlyingDancer30-Jul-03 23:40
FlyingDancer30-Jul-03 23:40 
GeneralRe: About a function declaration Pin
Anonymous30-Jul-03 23:58
Anonymous30-Jul-03 23:58 
GeneralRe: About a function declaration Pin
FlyingDancer31-Jul-03 1:47
FlyingDancer31-Jul-03 1:47 
QuestionHow to us msComm Control on A DialogBar Pin
coolfired30-Jul-03 23:40
coolfired30-Jul-03 23:40 
QuestionIs it possible to have callback function as a class member? Pin
Aidman30-Jul-03 23:09
Aidman30-Jul-03 23:09 
Hi, all Smile | :)

I am writing a class that creates and maintains a window/control. The problem is that I can’t seem to give the class its own private callback function (the Window Procedure alias WndProc); the VC++ complier simply gives a type cast error when giving out the function pointer. I thought about why and I assume that the reason lies in the different structure between class functions and global functions. But is there a way to go round this, like force the compiler to construct the class function as a global function (assuming that’s the case)? If that’s not that the case, then why does the compiler give a type cast error? And is it possible to have callback function as a class member or at least give the class some sort of private callback function? And oh yes, I know I can use MFC but I simply prefer not, I want to know if can be done without its help.

Thanks in advance


Aidman » over and out
We haven't inherited Earth from our parents, instead we have borrowed her from our children; an old Indian saying.
AnswerRe: Is it possible to have callback function as a class member? Pin
FlyingDancer30-Jul-03 23:34
FlyingDancer30-Jul-03 23:34 
GeneralRe: Is it possible to have callback function as a class member? Pin
Aidman31-Jul-03 0:37
Aidman31-Jul-03 0:37 

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.