游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1680|回复: 1

c++问题

[复制链接]

5

主题

10

帖子

10

积分

新手上路

Rank: 1

积分
10
发表于 2005-10-7 15:12:00 | 显示全部楼层 |阅读模式
我写了程序,其中一段代码如下
m_hwnd_dialog=CreateDialog(NULL,MAKEINTRESOURCE(IDD_DIALOG1),NULL,DialogProc1);

DLGPROC  CMyD3DApplication:ialogProc1(HWND hwndDlg,  // handle to dialog box
  UINT uMsg,     // message
  WPARAM wParam, // first message parameter
  LPARAM lParam  )
{
//return true;
}
编译时总是出错
error C2664: 'CreateDialogParamA' : cannot convert parameter 4 from 'int (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

53

主题

419

帖子

451

积分

中级会员

Rank: 3Rank: 3

积分
451
发表于 2005-10-7 15:33:00 | 显示全部楼层

Re:c++问题

发错地方了吧
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-28 01:27

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表