我用atl 做 ActiveX 有窗体的。 在消息处理上有些问题。消息影射部分
BEGIN_MSG_MAP(CYXCardControl)
MESSAGE_HANDLER(ON_COM_RECEIVE, On_Receive )END_MSG_MAP()消息处理函数
LRESULT On_Receive( WPARAM wp, LPARAM lp )
{
return 0;
}可是在编译时,总是出现,下面提示, 编译不过去AtlComm.cpp
d:\远兴\atlcomm\yxcardcontrol.h(78) : error C2660: 'On_Receive' : function does not take 4 parameters
YXCardControl.cpp
d:\远兴\atlcomm\yxcardcontrol.h(78) : error C2660: 'On_Receive' : function does not take 4 parameters
Generating Code...
Error executing cl.exe.AtlComm.dll - 2 error(s), 0 warning(s)555 555 大侠, 这是怎么回事啊。
BEGIN_MSG_MAP(CYXCardControl)
MESSAGE_HANDLER(ON_COM_RECEIVE, On_Receive )END_MSG_MAP()消息处理函数
LRESULT On_Receive( WPARAM wp, LPARAM lp )
{
return 0;
}可是在编译时,总是出现,下面提示, 编译不过去AtlComm.cpp
d:\远兴\atlcomm\yxcardcontrol.h(78) : error C2660: 'On_Receive' : function does not take 4 parameters
YXCardControl.cpp
d:\远兴\atlcomm\yxcardcontrol.h(78) : error C2660: 'On_Receive' : function does not take 4 parameters
Generating Code...
Error executing cl.exe.AtlComm.dll - 2 error(s), 0 warning(s)555 555 大侠, 这是怎么回事啊。
解决方案 »
- DialogBoxParam中最后一个参数问题
- qq头像变灰是怎么做的?
- 高手们 推荐几本有关com组件的好书吧
- 请问下串口通信中一但调用closehandle
- 初学者问题,关于组件实例化
- 诸位,谁能直到一下:怎样编写服务程序。
- DLL权限问题
- 请问:我在阅读一段程序,里面有“IN char requestType;” 不懂 IN是什么意思,VC中有IN这样的类型吗?
- 文件操作问题
- 编译ATL工程的连接错误:msvcrt.lib(dllsupp.obj) : error LNK2005: __fltused already defined in StdAfx.obj
- 急问socket 连接问题?
- 求助:有关对话框的一些函数
取決于你是用什麼消息.
ON_COM_RECEIVE是什麼?
在处理时将bHandled = TRUE
LRESULT On_Receive(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);但返回值不用S_OK E_FAIL,因为是LRESULT...