Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 23 Mar 2006 18:05:27 -0600,    group: microsoft.public.win32.programmer.directx.sdk        back       


unresolved external symbol _IID_IXXX   
Hi, 

I created two filters by myself to use in my app.
When I build the app, I get the following link errors.

omplayerView.obj : error LNK2001: unresolved external symbol 
_IID_IAudioSpeedChange
omplayerView.obj : error LNK2001: unresolved external symbol 
_CLSID_AudioSpeedChange
omplayerView.obj : error LNK2001: unresolved external symbol 
_IID_IFilterVideo
omplayerView.obj : error LNK2001: unresolved external symbol 
_CLSID_FilterVideo

If I add the implementation files of both filters to the project (which I 
don't think is right), I get the following link errors.

FilterVideo.obj : error LNK2005: "int g_cTemplates" (?g_cTemplates@@3HA) 
already defined in AudioSpeedChange.obj
FilterVideo.obj : error LNK2005: "class CFactoryTemplate * g_Templates" (?
g_Templates@@3PAVCFactoryTemplate@@A) already defined in AudioSpeedChange.
obj

Could someone please point out what I am doing wrong?

Thanks,
Bibo mushi.
date: Thu, 23 Mar 2006 18:05:27 -0600   author:   Bibo mushi

Re: unresolved external symbol _IID_IXXX   
On Thu, 23 Mar 2006 18:05:27 -0600, Bibo mushi wrote:

> I created two filters by myself to use in my app.
> When I build the app, I get the following link errors.
> 
> omplayerView.obj : error LNK2001: unresolved external symbol 
> _IID_IAudioSpeedChange
> omplayerView.obj : error LNK2001: unresolved external symbol 
> _CLSID_AudioSpeedChange
> omplayerView.obj : error LNK2001: unresolved external symbol 
> _IID_IFilterVideo
> omplayerView.obj : error LNK2001: unresolved external symbol 
> _CLSID_FilterVideo

See the entry in the dshow FAQ in the SDK docs on <initguid.h>  (it's also
covered in my FAQ).

Also, read the link in my sig below.  Dshow questions belong in the
.../video or ../audio group.


-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Thu, 23 Mar 2006 17:29:54 -0700   author:   The March Hare [MVP]

Re: unresolved external symbol _IID_IXXX   
Thank you so much. That was so easy!
I just needed to include <initguid.h> before including
my own interface.

You saved a lot of my time.
I really appreciate your help.

Bibo mushi.
date: Thu, 23 Mar 2006 19:32:20 -0600   author:   Bibo mushi

Re: unresolved external symbol _IID_IXXX   
On Thu, 23 Mar 2006 19:32:20 -0600, Bibo mushi wrote:

> Thank you so much. That was so easy!
> I just needed to include <initguid.h> before including
> my own interface.
> 
> You saved a lot of my time.
> I really appreciate your help.

Great.  I would appreciate it if you post in the dshow groups next time and
quote what you're replying to like I have (trimmed and inline).  It makes
it easier to follow the conversation :)

-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Thu, 23 Mar 2006 19:10:22 -0700   author:   The March Hare [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us