Click here to Skip to main content
15,895,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Browse the file and read it. Pin
chandu0046-Nov-07 1:50
chandu0046-Nov-07 1:50 
GeneralRe: Browse the file and read it. Pin
CodingLover6-Nov-07 18:34
CodingLover6-Nov-07 18:34 
GeneralRe: Browse the file and read it. Pin
Nelek6-Nov-07 21:01
protectorNelek6-Nov-07 21:01 
GeneralRe: Browse the file and read it. Pin
CodingLover6-Nov-07 21:40
CodingLover6-Nov-07 21:40 
AnswerRe: Browse the file and read it. Pin
Nelek5-Nov-07 23:52
protectorNelek5-Nov-07 23:52 
NewsRe: Browse the file and read it. Pin
CodingLover6-Nov-07 0:46
CodingLover6-Nov-07 0:46 
QuestionRe: Browse the file and read it. Pin
Nelek6-Nov-07 1:52
protectorNelek6-Nov-07 1:52 
QuestionMessage Map Problem [modified] Pin
minihotto5-Nov-07 22:39
minihotto5-Nov-07 22:39 
Hello,
I create a "Windows Form Application" project that names p2pport, in Microsoft visual .NET 2005.
I want to use the Message Map. I see it on MSDN. MFC uses it.
So I include the #include <afxwin.h>, and use MFC in a shared DLL.
This is my code.

BEGIN_MESSAGE_MAP(p2pport::Dlg,public System::Windows::Forms::Form)
ON_MESSAGE(WM_UI1, p2pport::Dlg::OnUI1, WPARAM wParam, LPARAM lParam)
ON_MESSAGE(WM_UI2, p2pport::Dlg::OnUI2, WPARAM wParam, LPARAM lParam)
ON_MESSAGE(MM_MIXM_LINE_CHANGE,p2pport::Dlg::onMixerCallBack)
ON_MESSAGE(MM_MIXM_CONTROL_CHANGE,p2pport::Dlg::onMixerCallBack)
END_MESSAGE_MAP()

p2pport is my project name, and Dlg is the name of my form file.
But I get a lots of errors.

error C2039: 'GetMessageMap' : is not a member of 'p2pport::Dlg'
error C2039: 'GetThisMessageMap' : is not a member of 'p2pport::Dlg'
error C2039: 'GetThisMessageMap' : is not a member of 'System::Int32'
error C2270: 'GetMessageMap' : modifiers not allowed on nonmember functions
error C2365: 'GetThisMessageMap' : redefinition; previous definition was 'formerly unknown identifier'
error C2440: 'static_cast' : cannot convert from 'void (__clrcall p2pport::Dlg::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
error C2440: 'static_cast' : cannot convert from 'void (__clrcall p2pport::Dlg::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
error C2440: 'static_cast' : cannot convert from 'void (__clrcall p2pport::Dlg::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
error C2440: 'static_cast' : cannot convert from 'void (__clrcall p2pport::Dlg::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
error C3861: 'GetThisMessageMap': identifier not found
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I google it, but nothing finds.

Can anybody help me to solve it?
Appreciate for ur reply. Thx.





-- modified at 5:03 Tuesday 6th November, 2007
AnswerRe: Message Map Problem Pin
baerten5-Nov-07 23:35
baerten5-Nov-07 23:35 
QuestionRe: Message Map Problem Pin
minihotto6-Nov-07 1:24
minihotto6-Nov-07 1:24 
AnswerRe: Message Map Problem Pin
minihotto6-Nov-07 1:42
minihotto6-Nov-07 1:42 
GeneralRe: Message Map Problem Pin
baerten6-Nov-07 1:59
baerten6-Nov-07 1:59 
Questionprotect from print-screen Pin
vikramlinux5-Nov-07 22:29
vikramlinux5-Nov-07 22:29 
AnswerRe: protect from print-screen Pin
baerten5-Nov-07 22:37
baerten5-Nov-07 22:37 
GeneralRe: protect from print-screen Pin
Nelek5-Nov-07 23:23
protectorNelek5-Nov-07 23:23 
GeneralRe: protect from print-screen Pin
baerten5-Nov-07 23:37
baerten5-Nov-07 23:37 
GeneralRe: protect from print-screen Pin
Nelek6-Nov-07 1:53
protectorNelek6-Nov-07 1:53 
QuestionHow to connect to database in MFC? Pin
TooShy2Talk5-Nov-07 21:15
TooShy2Talk5-Nov-07 21:15 
QuestionRe: How to connect to database in MFC? Pin
Hamid_RT5-Nov-07 21:26
Hamid_RT5-Nov-07 21:26 
AnswerRe: How to connect to database in MFC? Pin
TooShy2Talk5-Nov-07 22:05
TooShy2Talk5-Nov-07 22:05 
AnswerRe: How to connect to database in MFC? Pin
cx_jin5-Nov-07 22:09
cx_jin5-Nov-07 22:09 
AnswerRe: How to connect to database in MFC? Pin
cx_jin7-Nov-07 15:18
cx_jin7-Nov-07 15:18 
Questionhelp me Pin
SnaKeBeD5-Nov-07 21:06
SnaKeBeD5-Nov-07 21:06 
AnswerRe: help me Pin
Hamid_RT5-Nov-07 21:08
Hamid_RT5-Nov-07 21:08 
GeneralRe: help me Pin
Nelek5-Nov-07 21:16
protectorNelek5-Nov-07 21:16 

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.