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
OR
#define INITGUID
not sure if thats helps..
later -
Nathan Strandberg
CEO, Dira Interactive
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)
#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).]