Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to use an Array of a class? (modified) Pin
Mark Salsbery2-Apr-07 7:48
Mark Salsbery2-Apr-07 7:48 
GeneralRe: how to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 7:26
MohammadAmiry2-Apr-07 7:26 
GeneralRe: how to use an Array of a class? (modified) Pin
Mark Salsbery2-Apr-07 7:31
Mark Salsbery2-Apr-07 7:31 
AnswerRe: how to use an Array of a class? (modified) Pin
Cedric Moonen2-Apr-07 7:41
Cedric Moonen2-Apr-07 7:41 
GeneralRe: how to use an Array of a class? (modified) Pin
led mike2-Apr-07 8:00
led mike2-Apr-07 8:00 
NewsRe: how to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 7:54
MohammadAmiry2-Apr-07 7:54 
AnswerSOLVED: how to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 8:11
MohammadAmiry2-Apr-07 8:11 
Questionerror C2440 help please Pin
bward842-Apr-07 6:40
bward842-Apr-07 6:40 
Hello, I have inherited a project that was originally written in VC++ 6.0 and am trying to compile it in vs 2005 but get several static_cast errors in my MESSAGE_MAPS. One example message map is

BEGIN_MESSAGE_MAP(CSlave, CWnd)
//{{AFX_MSG_MAP(CSlave)
ON_WM_CREATE()
ON_WM_NCHITTEST() <===Getting Error Here
ON_WM_NCMOUSEMOVE()
ON_WM_LBUTTONDOWN()
ON_WM_RBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_MOUSEMOVE()
ON_WM_WINDOWPOSCHANGING()
ON_WM_PAINT()
//}}AFX_MSG_MAP
ON_MESSAGE(WM_TIFF,OnImage)
END_MESSAGE_MAP()

The exact error is:
cannot convert from 'UINT (__thiscall CSlave::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'

The CSlave Class is derived from the CWnd class in an included .h file So I am not certain why this error is occuring. This is happening in several files of the project and any help from the community would be greatly appreciated. Thank you.

Also I will answer any questions as quickly as possible.

AnswerRe: error C2440 help please Pin
Mark Salsbery2-Apr-07 7:08
Mark Salsbery2-Apr-07 7:08 
GeneralRe: error C2440 help please Pin
bward842-Apr-07 7:38
bward842-Apr-07 7:38 
GeneralRe: error C2440 help please Pin
Mark Salsbery2-Apr-07 7:44
Mark Salsbery2-Apr-07 7:44 
GeneralRe: error C2440 help please Pin
bward842-Apr-07 7:49
bward842-Apr-07 7:49 
GeneralRe: error C2440 help please Pin
Mark Salsbery2-Apr-07 8:22
Mark Salsbery2-Apr-07 8:22 
GeneralRe: error C2440 help please Pin
bward842-Apr-07 9:49
bward842-Apr-07 9:49 
GeneralRe: error C2440 help please Pin
Mark Salsbery2-Apr-07 10:01
Mark Salsbery2-Apr-07 10:01 
AnswerRe: error C2440 help please Pin
N0dGrand872-Apr-07 7:10
N0dGrand872-Apr-07 7:10 
GeneralRe: error C2440 help please Pin
bward842-Apr-07 7:39
bward842-Apr-07 7:39 
QuestionModifying ES_PASSWORD Pin
megaadam2-Apr-07 6:13
professionalmegaadam2-Apr-07 6:13 
AnswerRe: Modifying ES_PASSWORD Pin
Ravi Bhavnani2-Apr-07 6:34
professionalRavi Bhavnani2-Apr-07 6:34 
AnswerRe: Modifying ES_PASSWORD Pin
Mark Salsbery2-Apr-07 6:38
Mark Salsbery2-Apr-07 6:38 
AnswerRe: Modifying ES_PASSWORD Pin
David Crow2-Apr-07 7:19
David Crow2-Apr-07 7:19 
QuestionVisualStylesXP.h Pin
Ben Aldhouse2-Apr-07 5:39
Ben Aldhouse2-Apr-07 5:39 
AnswerRe: VisualStylesXP.h Pin
Maximilien2-Apr-07 7:33
Maximilien2-Apr-07 7:33 
AnswerRe: VisualStylesXP.h Pin
Michael Dunn2-Apr-07 15:45
sitebuilderMichael Dunn2-Apr-07 15:45 
GeneralRe: VisualStylesXP.h Pin
Ben Aldhouse19-Apr-07 10:34
Ben Aldhouse19-Apr-07 10:34 

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.