| | |
Converting parameters in MFC "Error C2440"
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 30
Reputation:
Solved Threads: 0
Hi,
I tried the following snippet of code
but i got an error at this line:
the error is :
here's the definitions for the passing parameters:
OnRecoEvent is a void function...
I tried the following snippet of code
C++ Syntax (Toggle Plain Text)
BEGIN_MESSAGE_MAP(CSpeechDlg, CDialog) //{{AFX_MSG_MAP(CSpeechDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_BUTTON_VOICE_TRAINING, OnButtonVoiceTraining) ON_BN_CLICKED(IDC_BUTTON_MICRO_SETUP, OnButtonMicroSetup) ON_BN_CLICKED(IDC_BUTTON_SPEAK, OnButtonSpeak) ON_BN_CLICKED(IDC_BUTTON_ABOUT, OnButtonAbout) //}}AFX_MSG_MAP ON_MESSAGE(WM_RECOEVENT,OnRecoEvent) END_MESSAGE_MAP()
but i got an error at this line:
C++ Syntax (Toggle Plain Text)
ON_MESSAGE(WM_RECOEVENT,OnRecoEvent)
C++ Syntax (Toggle Plain Text)
Error 1 error C2440: 'static_cast' : cannot convert from 'void (__thiscall CSpeechDlg::* )(void)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
C++ Syntax (Toggle Plain Text)
#define WM_RECOEVENT WM_USER+5
•
•
Join Date: Oct 2007
Posts: 30
Reputation:
Solved Threads: 0
well the building error is solved but i got a run time error!!!
here's the error:
here's the error:
C++ Syntax (Toggle Plain Text)
Runtime Error! R6034 An application has made an attempt to load C runtime library incorrectly.
•
•
•
•
well the building error is solved but i got a run time error!!!
here's the error:
C++ Syntax (Toggle Plain Text)
Runtime Error! R6034 An application has made an attempt to load C runtime library incorrectly.
![]() |
Other Threads in the C++ Forum
- Previous Thread: AVL tree issues
- Next Thread: vbapi.h
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





