Sign in to follow this  
Joei

DirectX 8, MIDI's and Dev C++ help :(

Recommended Posts

Ok, I have a seriously annoying problem. A few weeks ago I came across a thread on another forum called C++ Compilers and Environments - http://forums.3drealms.com/ubbthreads/showflat.php?Cat=&Board=UBB11&Number=516841&page=0&view=collapsed&sb=5&o=93&fpart=1 From there I downloaded the DX8 libraries and stuff posted by a member. I am using the Dev C++ 5.0 beta (4.9.8.0)and am wanting to mess about with DirectMusic etc to be able to play MIDI's. However, upon compiling any kind of program to test that everything is in order, myself and a friend of mine get the same silly errors that we don't understand. Can anyone help so I can actually start learning the ins and outs of DirectMusic stuff? It would be greatly appreciated and will stop me going insane! the errors are: 1669 C:\Dev-Cpp\include\dmusici.h type specifier omitted for parameter ` 1669 C:\Dev-Cpp\include\dmusici.h parse error before `,' token 1673 C:\Dev-Cpp\include\dmusici.h type specifier omitted for parameter ` 1673 C:\Dev-Cpp\include\dmusici.h parse error before `*' token Anyways the error is concerned with the #include <dmusici.h> line. Pointing to something wrong with this header file. the error is concerned with the line highlighted by the "*" below - the VARIANT line. STDMETHOD(SetVariableVariant) (THIS_ WCHAR *pwszVariableName, VARIANT varValue, ******** BOOL fSetRef, DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; thanks in advance for any help you can provide :{

Share this post


Link to post
Share on other sites
*push* Please, can nobody help? I was pointed to this forum saying you guys were experienced in this stuff? I've been stuck on this for ages and not getting anywhere :(

Share this post


Link to post
Share on other sites
Dev C++ isn't a very good compiler for DirectX development. Microsoft Visual C++ is what most people use for DirectX games, so that's why I'm guessing nobody is replying.

I'm guessing your compiler doesn't understand what VARIANT and DMUS_SCRIPT_ERRORINFO are. I don't know why, but go to where they're defined, and if they're a typedef or something, replace VARIANT with 'int' or 'double' or whatever it is. If it's a structure or class, look through the header and see if VARIANT and DMUS_SCRIPT_ERRORINFO are being declared before those 4 lines.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this