VC++编译出现问题,请帮助!

来源:百度知道 编辑:UC知道 时间:2024/06/21 09:52:41
--------------------Configuration: login_client - Win32 Debug--------------------
Compiling...
about_dlg.cpp
e:\文档重要\桌面\工具全集\宽带连接\drcom-client-win32\drcom-client-win32-0.2.1-src\login_client\about_dlg.cpp(107) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__
stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type
auth_dlg.cpp
e:\文档重要\桌面\工具全集\宽带连接\drcom-client-win32\drcom-client-win32-0.2.1-src\login_client\auth_dlg.cpp(229) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__s
tdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope

可能是Unicode字符集的问题吧??你用什么编译器,vc2005么?你把工程的属性改一下,用单字符应该就可以了。
没看到源码,只是推测:)楼主试试吧

兄弟, 你的错误是 不能把 long 自动转换成 int

要么包两个变量都定义成 long 要么都定义成 int

试试看!

祝你运行顺利! o(∩_∩)o...

出错部分的代码贴一下啊

你用的是vc6吧?
换用vs2003来编译,如果你非要用vc6,需要安装platform sdk