游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3927|回复: 3

HoHo的应用问题!

[复制链接]

3

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
发表于 2004-7-8 08:29:00 | 显示全部楼层 |阅读模式
大家好,我是刚认识HoHo的;
工作平台:WindowsXp + DX9SDK + VC6
这两天在用HoHo写多媒体应用的时候出现了好多错误,在每次#include "hMusic.h" 或者 "hVideo.h"时就会错误:
c:\dxsdk\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
c:\dxsdk\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
c:\dxsdk\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
c:\dxsdk\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:\dxsdk\include\strmif.h(1018) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

MyGame.exe - 8 error(s), 0 warning(s)

据我所看,应该是"DWORD_PTR"出现了某种错误
请高手们帮我分析一下! [em24] [em24]

3

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2004-7-8 09:37:00 | 显示全部楼层

Re: HoHo的应用问题!

有高手在吗?进来帮帮我的忙啊!

1万

主题

1万

帖子

2万

积分

管理员

中级会员

Rank: 9Rank: 9Rank: 9

积分
20356
QQ
发表于 2004-7-8 11:59:00 | 显示全部楼层

Re:HoHo的应用问题!

能否把包含部分的代码片断发上来看看?

3

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2004-7-8 14:45:00 | 显示全部楼层

Re: HoHo的应用问题!

我只要引用"hMusic.h",就会出错.
在"dsound.h"中:
    typedef struct _DSEFFECTDESC
    {
        DWORD       dwSize;
        DWORD       dwFlags;
        GUID        guidDSFXClass;
        DWORD_PTR   dwReserved1;
        DWORD_PTR   dwReserved2;
    } DSEFFECTDESC, *LPDSEFFECTDESC;
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-13 03:45

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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