|
|
我目前使用的是VC++6.0 SP6与TV3D 6.2 SDK在做测试,
DX SDK使用过2006二月以及2003 Summer两种版本,
(分别是9.0c最新版与9.0b)
并由其中的第10个教学文件开始修改成自己的东西,
目前是可以使用TV3DEngine来作绘图,
可是目前为了要加入声音,
所以到tv3dcpp.h中想要读入tvmedia.dll,
但问题就在於取消了关於TVMedia部分的注释後,
编译时却发生问题,问题如下:
--------------------Configuration: Tutorial 10 - Win32 Debug--------------------
Compiling...
Tutorial 10.cpp
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(695) : error C2564: 'void *' : function-style conversion to builtin type takes only one argument
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(1068) : error C2027: use of undefined type 'DSCAPS'
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tlh(1048) : see declaration of 'DSCAPS'
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(1069) : error C2079: '_result' uses undefined struct 'DSCAPS'
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(1070) : error C2664: 'get_ActiveSoundDeviceCapabilities' : cannot convert parameter 1 from 'int *' to 'struct TV3DMedia: SCAPS *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
Tutorial 10.exe - 4 error(s), 0 warning(s)
所以使得我无法使用TVMedia的功能,
不知道板上有没有人有用过VC++6.0与TV3D6.2做过开发的?
想请教是否有办法解决这个问题,谢谢。 |
|