Solved

unresolved external symbol

Posted on 1998-07-10
7
500 Views
Last Modified: 2013-11-19
I want to use DirectSound in my program but I get this:
unresolved external symbol _IID_IDirectSoundNotify

I already linked my program with dsound.lib and winmm.lib. So what library should I link with my program?
0
Comment
Question by:fmichaud061597
7 Comments
 
LVL 8

Expert Comment

by:trestan
ID: 1319016
You define it by yourself: IID_IDirectSoundNotify? If so, it is most possibly you did not include the file containing this symbol.
0
 
LVL 1

Expert Comment

by:chacko
ID: 1319017
Take all dlls and create MDFs(module definition files) and see which one to include.
0
 

Author Comment

by:fmichaud061597
ID: 1319018
I don't think it will help. It's more a direct sound procedure question.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Expert Comment

by:tma050898
ID: 1319019
This may have just been a type in the question, but you have _IID_IDirectSoundNotify

The IID is IID_IDirectSoundNotify (without the underscore).

For example...

LPDIRECTSOUNDNOTIFY lpDsNotify;
.
HRESULT hr;
hr = lpDsbSecondary->QueryInterface(IID_IDirectSoundNotify, &lpDsNotify);
if (SUCCEEDED(hr))
{...}

0
 

Author Comment

by:fmichaud061597
ID: 1319020
It's exactly what I have

if FAILED(IDirectSoundBuffer_QueryInterface(lpdsb, IID_IDirectSoundNotify, (VOID **)&lpdsNotify))
                        {
                              return FALSE;
                        }

There is no underscore
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1319021
dxguid.lib
0
 

Author Comment

by:fmichaud061597
ID: 1319022
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now