Click here to Skip to main content
15,928,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I know the actual size of a menu? Pin
John R. Shaw22-Mar-04 18:20
John R. Shaw22-Mar-04 18:20 
AnswerRe: How can I know the actual size of a menu? Pin
Michael Dunn22-Mar-04 18:34
sitebuilderMichael Dunn22-Mar-04 18:34 
GeneralRe: How can I know the actual size of a menu? Pin
Roger Allen23-Mar-04 1:41
Roger Allen23-Mar-04 1:41 
GeneralRe: How can I know the actual size of a menu? Pin
Michael Dunn23-Mar-04 6:51
sitebuilderMichael Dunn23-Mar-04 6:51 
Generalopen type varaible Pin
Oriented22-Mar-04 11:10
Oriented22-Mar-04 11:10 
GeneralRe: open type varaible Pin
John R. Shaw22-Mar-04 18:33
John R. Shaw22-Mar-04 18:33 
GeneralON_MESSAGE Error Pin
sschilachi22-Mar-04 11:08
sschilachi22-Mar-04 11:08 
GeneralRe: ON_MESSAGE Error Pin
John R. Shaw22-Mar-04 19:15
John R. Shaw22-Mar-04 19:15 
Naturaly I would look for any where that you use static_cast. In C you probubly would not see the error, but C++ is less forgiving (a good thing).

This is realy not quite enough infomation to solve the problem, although the deference between CMainFrame* and CWnd* does suggest a scopping problem, accept for the fact that static_cast is being used.

If you know the line on which the error occurs (I assume you do), then you have half the problem solved. Now look at all the related functions that take arguments (WPARAM,LPARAM) and work from there.

This is one of the reasons that C++ can be very irritating, because in C what you see is what you get. But in C++, not only does it hide information but, it often hides the reason for the error.

Well! Good luck in solving your problem, it does not look too difficult.

Sorry if this did not help, since it looks like you are already applying the method I would use.

INTP
GeneralRe: ON_MESSAGE Error Pin
Prakash Nadar22-Mar-04 21:31
Prakash Nadar22-Mar-04 21:31 
QuestionShowing a dialog as a child of another. How? Pin
ScarberryProd22-Mar-04 10:58
ScarberryProd22-Mar-04 10:58 
AnswerRe: Showing a dialog as a child of another. How? Pin
Shog922-Mar-04 11:23
sitebuilderShog922-Mar-04 11:23 
GeneralRe: Showing a dialog as a child of another. How? Pin
ScarberryProd22-Mar-04 11:38
ScarberryProd22-Mar-04 11:38 
GeneralRe: Showing a dialog as a child of another. How? Pin
Shog922-Mar-04 12:32
sitebuilderShog922-Mar-04 12:32 
Generalrandomize Pin
Nicolas Thompson22-Mar-04 9:40
sussNicolas Thompson22-Mar-04 9:40 
GeneralRe: randomize Pin
Ravi Bhavnani22-Mar-04 9:44
professionalRavi Bhavnani22-Mar-04 9:44 
GeneralRe: randomize Pin
Neville Franks22-Mar-04 10:01
Neville Franks22-Mar-04 10:01 
GeneralRe: randomize Pin
David Crow22-Mar-04 10:45
David Crow22-Mar-04 10:45 
GeneralRe: randomize Pin
Dimenser23-Mar-04 15:15
Dimenser23-Mar-04 15:15 
Generalrandomize Pin
Anonymous22-Mar-04 9:39
Anonymous22-Mar-04 9:39 
GeneralUsing DLL from VB Pin
BlackDice22-Mar-04 9:37
BlackDice22-Mar-04 9:37 
GeneralRe: Using DLL from VB Pin
John R. Shaw22-Mar-04 19:28
John R. Shaw22-Mar-04 19:28 
GeneralRe: Using DLL from VB Pin
BlackDice23-Mar-04 2:50
BlackDice23-Mar-04 2:50 
GeneralRe: Using DLL from VB Pin
John R. Shaw23-Mar-04 10:41
John R. Shaw23-Mar-04 10:41 
GeneralRe: Using DLL from VB Pin
BlackDice23-Mar-04 10:53
BlackDice23-Mar-04 10:53 
GeneralRe: Using DLL from VB Pin
John R. Shaw23-Mar-04 11:48
John R. Shaw23-Mar-04 11:48 

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.