Solved

unresolved external symbol

Posted on 1998-07-10
7
516 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Generic progress indicator 6 117
sum28 challenge 31 115
either24  challenge 19 101
How do I get Window Title of all opened process? 4 14
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

829 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