首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

dll调用有关问题,求解

2012-03-01 
dll调用问题,求解做了个win 32 dll,现在想放在一个MFC界面按钮上调用,出现下面问题:C:\Documents and Sett

dll调用问题,求解
做了个win 32 dll,现在想放在一个MFC界面按钮上调用,出现下面问题:
C:\Documents and Settings\lenovo\桌面\socks网络通信\socks编程\UDP协议测试\Server\ServerDlg.cpp(218) : error C2664: 'int (int,unsigned char *,int,unsigned char *,unsigned char *,int *)' : cannot convert parameter 6 from 'const int' to 'int *'
  Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\lenovo\桌面\socks网络通信\socks编程\UDP协议测试\Server\ServerDlg.cpp(218) : error C2664: 'int (int,unsigned char *,int,unsigned char *,unsigned char *,int *)' : cannot convert parameter 5 from 'const int' to 'unsigned char 
*'
  Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\lenovo\桌面\socks网络通信\socks编程\UDP协议测试\Server\ServerDlg.cpp(218) : error C2664: 'int (int,unsigned char *,int,unsigned char *,unsigned char *,int *)' : cannot convert parameter 4 from 'const int' to 'unsigned char 
*'
  Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\lenovo\桌面\socks网络通信\socks编程\UDP协议测试\Server\ServerDlg.cpp(218) : error C2664: 'int (int,unsigned char *,int,unsigned char *,unsigned char *,int *)' : cannot convert parameter 2 from 'const int' to 'unsigned char 
*'
  Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

Server.exe - 4 error(s), 0 warning(s)
求详细解答~~

[解决办法]
函数参数传递错误
[解决办法]
好像都是类型转换的问题啊。。把代码贴出来看看吧。
[解决办法]
都是参数转换错误,自己根据提示改改
[解决办法]
seekcrypt(1,'12',2,'1212','2323',4) 用双引号

热点排行