- 注册时间
- 2004-11-1
- 最后登录
- 2018-4-24
版主
  
- 积分
- 548
|

楼主 |
发表于 2007-11-18 12:55:40
|
显示全部楼层
根本快不起来啊....因为就没有成功过。只是模块文件在DMD下表现没有问题罢了。
本来想写个程序测试下。- import win32.directx.ds9;
- import win32.windows;
- pragma(lib,"dsound.lib");
- pragma(lib,"win32.lib");
- LPDIRECTSOUND8 DS;
- int main(){
- HRESULT hr;
-
- hr = DirectSoundCreate8(null,&DS,null);
- if (hr < 0) return -1;
- printf("DirectSoundCreate8 OK!\\n");
- hr = DS.SetCooperativeLevel(GetActiveWindow(), DSSCL_PRIORITY);
- if (hr < 0) return -1;
- printf("SetCooperativeLevel OK!\\n");
- }
复制代码 结果是- DirectSoundCreate8 OK!
- Error: Access Violation
复制代码 什么叫Access Violation?GOD才知道错误在哪里。
看来DX天生和我八字不合,我还是用openal+opengl算了。反正也够用了。 |
|