Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: USB Communication Pin
Anonymous16-Aug-05 7:42
Anonymous16-Aug-05 7:42 
GeneralRe: USB Communication Pin
prcarp12-Aug-05 8:15
prcarp12-Aug-05 8:15 
GeneralRe: USB Communication Pin
ThatsAlok12-Aug-05 19:09
ThatsAlok12-Aug-05 19:09 
GeneralRe: USB Communication Pin
Nautilus Master13-Aug-05 0:54
Nautilus Master13-Aug-05 0:54 
GeneralRe: USB Communication Pin
Anonymous11-Sep-05 4:18
Anonymous11-Sep-05 4:18 
GeneralRe: USB Communication Src Pin
Nautilus Master11-Sep-05 4:40
Nautilus Master11-Sep-05 4:40 
GeneralON_WM_CREATE() Definition Pin
LiYS12-Aug-05 1:23
LiYS12-Aug-05 1:23 
GeneralRe: ON_WM_CREATE() Definition Pin
Bob Stanneveld12-Aug-05 2:39
Bob Stanneveld12-Aug-05 2:39 
Hello,

First, why do you wan't to know how the message macro's work?

I created a thread class, that also has a message map and the following explanation comes from my experiance.

The message map of MFC is an array of structs. These structs have one general pointer to a message. (Casting back to the right form is done using signatures.)

The statement is casting a function pointer to a general pointer used by the the message map of MFC. This is done in multiple steps, since you cannot cast it directly. The compiler will complain heavily about casting function pointers. For this reason it is first casted to a base class member function pointer. Second it is casted to an intermediate type and finally it is casted to the general type.

I hope this helps. Big Grin | :-D

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralRe: ON_WM_CREATE() Definition Pin
Anonymous12-Aug-05 3:45
Anonymous12-Aug-05 3:45 
GeneralRe: ON_WM_CREATE() Definition Pin
LiYS12-Aug-05 4:21
LiYS12-Aug-05 4:21 
GeneralRe: ON_WM_CREATE() Definition Pin
Bob Stanneveld12-Aug-05 4:59
Bob Stanneveld12-Aug-05 4:59 
GeneralTooltips in VS .NET 2003 Pin
Ulrich12-Aug-05 1:02
Ulrich12-Aug-05 1:02 
QuestionHow to fetch the columns from a table using vc++ CRecordSet Pin
G.Radhakrishna12-Aug-05 0:10
G.Radhakrishna12-Aug-05 0:10 
AnswerRe: How to fetch the columns from a table using vc++ CRecordSet Pin
Cedric Moonen12-Aug-05 1:31
Cedric Moonen12-Aug-05 1:31 
Generaliocp threads exit Pin
Michael Olsen11-Aug-05 23:54
Michael Olsen11-Aug-05 23:54 
GeneralRe: iocp threads exit Pin
geo_m13-Aug-05 21:36
geo_m13-Aug-05 21:36 
GeneralDisplaying Jpeg image in a dialog box Pin
jj92111-Aug-05 23:52
jj92111-Aug-05 23:52 
GeneralRe: Displaying Jpeg image in a dialog box Pin
ThatsAlok12-Aug-05 0:27
ThatsAlok12-Aug-05 0:27 
GeneralRe: Displaying Jpeg image in a dialog box Pin
Anonymous12-Aug-05 21:54
Anonymous12-Aug-05 21:54 
GeneralRe: Displaying Jpeg image in a dialog box Pin
ThatsAlok12-Aug-05 22:08
ThatsAlok12-Aug-05 22:08 
GeneralHelpNeeded Pin
nayankumarp11-Aug-05 23:52
nayankumarp11-Aug-05 23:52 
GeneralWinVer Pin
Anonymous11-Aug-05 23:48
Anonymous11-Aug-05 23:48 
GeneralRe: WinVer Pin
Trollslayer12-Aug-05 1:21
mentorTrollslayer12-Aug-05 1:21 
GeneralRe: WinVer Pin
Bob Stanneveld12-Aug-05 2:43
Bob Stanneveld12-Aug-05 2:43 
Generala command for a searching an .exe-file Pin
iboett2s11-Aug-05 23:19
iboett2s11-Aug-05 23:19 

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.