Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Bongo

Tuts on playing MIDIs with DX7

This topic is 6883 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

no one seems to have responded to your posting.. well, if you haven't figured out your problem yet: As you may know DMusic is large, and the first part of DX that uses complete COM..
I've had the same error before and it seems to happen if you have any of these files included in your project more than once:
objbase.h
initguid.h

OR
#define INITGUID

not sure if thats helps..

later -
Nathan Strandberg
CEO, Dira Interactive

Share this post


Link to post
Share on other sites
Advertisement
Anyone know of some clear tutorials for using DirectMusic for DX7? I tried getting an app to play some using the DirectMusic.doc in the DX7 tutorial section, but i keep getting this link error when i compile the darned thing:

Linking...
music.obj : error LNK2001: unresolved external symbol "struct IDirectMusicSegment * __cdecl LoadMIDISegment(struct IDirectMusicLoader *,unsigned short)"(?LoadMIDISegment@@YAPAUIDirectMusicSegment@@PAUIDirectMusicLoader@@G@Z)
Debug/MusicExample.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
MusicExample.exe - 2 error(s), 0 warning(s)

I thought maybe i was leaving a .h or .lib file out cause i've had LNK 2001 errors before and it was because i left a .lib file out, but i don't think that's the case... Frankly i don't even understand the error

Anyone have any suggestions? (I copied the functions right out of the tutorial in dmusic.doc)

Share this post


Link to post
Share on other sites

All I needed was:

#include < dmusicc.h >
#include < dmusici.h >

There are no libs for DM. Only headers. It's all COM. You need to use
functions like CoInitialize, CoCreateInstance, and CoUninitialize
and other stuff.

Reaver

[This message has been edited by Reaver (edited November 15, 1999).]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!