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.
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
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.
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