Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HI , Problm in Drag and Drop ,,,, DragQuryFile Pin
jmkhael18-Aug-04 1:45
jmkhael18-Aug-04 1:45 
GeneralRe: HI , Problm in Drag and Drop ,,,, DragQuryFile Pin
David Crow18-Aug-04 6:24
David Crow18-Aug-04 6:24 
Questionhow to get the addresses of data_segs Pin
FajoK18-Aug-04 0:08
FajoK18-Aug-04 0:08 
Generalusing externally defined function pointers Pin
erkanina17-Aug-04 23:47
erkanina17-Aug-04 23:47 
GeneralRe: using externally defined function pointers Pin
Ryan Binns17-Aug-04 23:58
Ryan Binns17-Aug-04 23:58 
GeneralRe: using externally defined function pointers Pin
erkanina18-Aug-04 0:27
erkanina18-Aug-04 0:27 
GeneralRe: using externally defined function pointers Pin
gamitech19-Aug-04 12:51
gamitech19-Aug-04 12:51 
GeneralC2642 error Pin
Just_a_Learner17-Aug-04 23:16
Just_a_Learner17-Aug-04 23:16 
Hi, I am in the early stages of generating an app that runs from the system tray icon (never used this before). However, I am getting a compile error on the message map entry for WM_TRAY_MESSAGE (which is #defined earlier as WM_USER+1) :-

IMPLEMENT_DYNCREATE(CReminderView, CView)
BEGIN_MESSAGE_MAP(CReminderView, CView)
//{{AFX_MSG_MAP(CReminderView)
ON_MESSAGE(WM_TRAY_MESSAGE ,OnTrayNotify)
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

The mapped function (in this class) is:-
afx_msg void CReminderView::OnTrayNotify(WPARAM wParam, LPARAM lParam)
{
....
}

The error I get is :-
error C2642: cast to pointer to member must be from related pointer to member

I don't understand the relevence of this error to the statement ON_MESSAGE(WM_TRAY_MESSAGE ,OnTrayNotify)
as the first parameter is a constant and the second is to a pointer to function contained
within this class. Where is the cast ?

Can someone get me back on the "straight and narrow" please ? (knowing me, it's probably something REALLY simple, but I can't see it !)


"Bewildered !""
GeneralRe: C2642 error Pin
Ryan Binns18-Aug-04 0:05
Ryan Binns18-Aug-04 0:05 
GeneralRe: C2642 error Pin
Just_a_Learner18-Aug-04 7:11
Just_a_Learner18-Aug-04 7:11 
GeneralDialogue container Pin
mansour_ahmadian17-Aug-04 22:44
mansour_ahmadian17-Aug-04 22:44 
GeneralRasEnumConnections Problem Pin
Muhammad Asif Khan17-Aug-04 21:27
Muhammad Asif Khan17-Aug-04 21:27 
GeneralRe: RasEnumConnections Problem Pin
Antti Keskinen18-Aug-04 1:24
Antti Keskinen18-Aug-04 1:24 
QuestionHow to write algorithms of WIN32 API.? Pin
Rajesh_K_Sharma17-Aug-04 19:54
Rajesh_K_Sharma17-Aug-04 19:54 
AnswerRe: How to write algorithms of WIN32 API.? Pin
Antti Keskinen18-Aug-04 1:09
Antti Keskinen18-Aug-04 1:09 
GeneralConverting Buffer image to DC Pin
uus9917-Aug-04 19:38
uus9917-Aug-04 19:38 
Generalreal time Pin
Michae_geffen17-Aug-04 19:26
Michae_geffen17-Aug-04 19:26 
GeneralRe: real time Pin
Ryan Binns17-Aug-04 19:38
Ryan Binns17-Aug-04 19:38 
GeneralRe: real time Pin
Bob Stanneveld18-Aug-04 3:09
Bob Stanneveld18-Aug-04 3:09 
GeneralRe: real time Pin
Ryan Binns18-Aug-04 3:26
Ryan Binns18-Aug-04 3:26 
GeneralRe: real time Pin
Bob Stanneveld18-Aug-04 7:21
Bob Stanneveld18-Aug-04 7:21 
GeneralRe: real time Pin
Michael Dunn17-Aug-04 21:03
sitebuilderMichael Dunn17-Aug-04 21:03 
QuestionHow to Record TV into PVR Pin
gao200417-Aug-04 16:42
gao200417-Aug-04 16:42 
AnswerRe: How to Record TV into PVR Pin
Antti Keskinen18-Aug-04 0:51
Antti Keskinen18-Aug-04 0:51 
GeneralRe: How to Record TV into PVR Pin
gao200418-Aug-04 15:47
gao200418-Aug-04 15:47 

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.