Game Development Community

mmreg.h

by William Finlayson · in Technical Issues · 08/11/2001 (11:38 am) · 11 replies

I was doing some code using DSound, but it won't compile, I checked the SDK documentation, and the declarations I need for the wave format are in mmreg.h

I cant find this file anywhere on my system so if someone could send me it at Shudder@byteme.co.uk or point me to where I could get it from, then it would be much appreciated.

#1
08/11/2001 (1:14 pm)
Do you have the latest VC++ Service Pack installed (SPDetect)? Also, do you have the Directx SDK installed?
#2
08/11/2001 (1:32 pm)
I'm not using VC++, Dev C++ instead. Ihave the DX8 SDK installed, but I think that mmreg.h is a windows thing, not a DX file.
#4
08/11/2001 (2:20 pm)
Thanks Matthew thats great, got to go and try it out now. I just hope that it doesn't use a pile of other files I don't own :]
#5
08/12/2001 (10:12 am)
That seems to have done the trick, but I've got another problem now. I've defined INIT_GUID and al lthe IID's and GUID's are fine appart from one - GUID_NULL. The compiler doesn't complain, so the definition must be there somewhere, but the linker says it cant resolve GUID_NULL.

Does anyone know how I could fix that, or if I could use any other expression to replace GUID_NULL? I've checked all the DX docs, and nowhere does it mention what needs to be linked to for GUID_NULL.
#6
08/12/2001 (12:38 pm)
Try including dxguid.lib in your project.
#7
08/13/2001 (4:57 pm)
I've done that, and the linker is fine with every other GUID in the program apart from GUID_NULL.
#8
08/13/2001 (10:39 pm)
It appears that all you need for GUID_NULL is to
#include

I compiled this program:

#include

void main()
{
GUID guidInstance = GUID_NULL;
}

With no libs linked to it and no errors. GUID_NULL is also defined in cguid.h

Hope this helps some =)
#9
08/14/2001 (7:27 am)
good investigation
#10
08/14/2001 (11:52 am)
I already have windows.h included, I'll try cguid.h and see if that works. Thanks for the help.
#11
08/15/2001 (5:51 pm)
I had a good hunt around, and it turns out that GUID_NULL is in uuid, I've linked to the equivelent of uuid.lib, and all's well, thanks anyway for all the help.