Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: #include "Afxcmm.h" [modified] Pin
see me12-Jul-06 20:27
see me12-Jul-06 20:27 
GeneralRe: #include "Afxcmm.h" Pin
Naveen12-Jul-06 22:06
Naveen12-Jul-06 22:06 
AnswerRe: #include "Afxcmm.h" Pin
David Crow13-Jul-06 3:49
David Crow13-Jul-06 3:49 
QuestionHow to create static text dynamically on dialogbox? Pin
jadhav12312-Jul-06 19:26
jadhav12312-Jul-06 19:26 
AnswerRe: How to create static text dynamically on dialogbox? Pin
Hamid_RT12-Jul-06 20:01
Hamid_RT12-Jul-06 20:01 
AnswerRe: How to create static text dynamically on dialogbox? Pin
see me12-Jul-06 20:13
see me12-Jul-06 20:13 
AnswerRe: How to create static text dynamically on dialogbox? Pin
ThatsAlok12-Jul-06 20:55
ThatsAlok12-Jul-06 20:55 
QuestionOverloaded member function not found in CNoteMgr Pin
dashprasannajit12-Jul-06 18:50
dashprasannajit12-Jul-06 18:50 
Hi,
I create MFC extension DLL and wrote couple of functions adding one class i.e.CNoteMgr
in the DLL workspace.
In the class header of CNoteMgr,
there are two functions whose signature is given as below :

BOOL CNoteMgr::drawLine(HDC,HPEN,POINT,HWND);
BOOL CNoteMgr::drawCurve(HDC,POINT,HWND);

The implementation has been done in different way for line drawing and drawing curve.

But while compiling the DLL, i am getting the following errors as below :
****************************************************************************************
Compiling...
Notebook.cpp
D:\FancyViewer\Notebook\Notebook.cpp(78) : warning C4101: 'msg' : unreferenced local variable
NoteMgr.cpp
D:\FancyViewer\Notebook\NoteMgr.cpp(632) : error C2511: 'drawLine' : overloaded member function 'int (struct HDC__ *,struct HPEN__ *,struct tagPOINT [],struct HWND__ *)' not found in 'CNoteMgr'
d:\fancyviewer\notebook\notemgr.h(29) : see declaration of 'CNoteMgr'

D:\FancyViewer\Notebook\NoteMgr.cpp(665) : error C2511: 'drawCurve' : overloaded member function 'int (struct HDC__ *,struct tagPOINT [],struct HWND__ *)' not found in 'CNoteMgr'
d:\fancyviewer\notebook\notemgr.h(29) : see declaration of 'CNoteMgr'

D:\FancyViewer\Notebook\NoteMgr.cpp(838) : warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false' (performance warning)
Generating Code...
Error executing cl.exe...
****************************************************************************************
PLEASE NOTE that the error id is "C2511".

I do not know where the point of overloading comes as the method names are different.
I found from MSDN regarding the error C2511 and tried all possibilities but still
the problem persists.
=========================================================================================
MSDN says that for the error C2511
'identifier' : overloaded member function not found in 'class'
No version of the function is declared with the specified parameters.
Possible causes :

(1)Wrong parameters passed to function.
(2)Parameters passed in wrong order.
(3)Incorrect spelling of parameter names.
The following sample generates C2511:

Example ->
// C2511.cpp
class C {
int c_2;
int Func(char *, char *);
};

int C::Func(char *, char *, int i) { // C2511
// try ...
// int C::Func(char *, char *) {
return 0;
}=========================================================================================
Can anyone help me out please ??


AnswerRe: Overloaded member function not found in CNoteMgr Pin
nguyenvhn12-Jul-06 21:02
nguyenvhn12-Jul-06 21:02 
QuestionGet number of days used Pin
includeh1012-Jul-06 18:49
includeh1012-Jul-06 18:49 
AnswerRe: Get number of days used Pin
Ganesh_T12-Jul-06 19:19
Ganesh_T12-Jul-06 19:19 
AnswerRe: Get number of days used Pin
*Dreamz12-Jul-06 19:28
*Dreamz12-Jul-06 19:28 
QuestionPlay a movie clip Pin
see me12-Jul-06 18:00
see me12-Jul-06 18:00 
GeneralRe: Play a movie clip Pin
voorugonda prashanth12-Jul-06 18:10
voorugonda prashanth12-Jul-06 18:10 
AnswerRe: Play a movie clip Pin
Naveen12-Jul-06 18:19
Naveen12-Jul-06 18:19 
GeneralRe: Play a movie clip Pin
see me12-Jul-06 18:31
see me12-Jul-06 18:31 
AnswerRe: Play a movie clip Pin
A_Fa12-Jul-06 19:35
A_Fa12-Jul-06 19:35 
GeneralRe: Play a movie clip Pin
see me12-Jul-06 20:11
see me12-Jul-06 20:11 
AnswerRe: Play a movie clip Pin
Hamid_RT12-Jul-06 20:00
Hamid_RT12-Jul-06 20:00 
GeneralRe: Play a movie clip Pin
see me12-Jul-06 20:06
see me12-Jul-06 20:06 
GeneralRe: Play a movie clip Pin
Hamid_RT12-Jul-06 20:10
Hamid_RT12-Jul-06 20:10 
Questionmodulus operator Pin
thathvamsi12-Jul-06 16:25
thathvamsi12-Jul-06 16:25 
AnswerRe: modulus operator Pin
nguyenvhn12-Jul-06 17:29
nguyenvhn12-Jul-06 17:29 
GeneralRe: modulus operator Pin
thathvamsi12-Jul-06 17:36
thathvamsi12-Jul-06 17:36 
AnswerRe: modulus operator Pin
Naveen12-Jul-06 17:41
Naveen12-Jul-06 17:41 

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.