Jump to content
  • Advertisement
Sign in to follow this  
defused

DirectShow

This topic is 5403 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all out there... i have a little problem with using DirecShow.. i got errors like the those shown below.. is there any1 who know how to debug it? KNN error LNK2001: unresolved external symbol _CLSID_AudioCompressorCategory KNN error LNK2001: unresolved external symbol _CLSID_FileWriter KNN error LNK2001: unresolved external symbol _CLSID_FilterGraph KNN error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum KNN error LNK2001: unresolved external symbol _IID_IAMStreamConfig KNN error LNK2001: unresolved external symbol _IID_IBaseFilter KNN error LNK2001: unresolved external symbol _IID_ICreateDevEnum KNN error LNK2001: unresolved external symbol _IID_IFileSinkFilter KNN error LNK2001: unresolved external symbol _IID_IGraphBuilder KNN error LNK2001: unresolved external symbol _IID_IMediaControl KNN error LNK2001: unresolved external symbol _IID_IMediaEvent The document from DirectShow says that Strmiids.lib are used to exports class identifiers (CLSIDs) and interface identifiers (IIDs). All DirectShow applications require this library. So i am wondering whether did i link this lib to my project. Is including <Dshow.h> just enough? But y am i still having the same errors??? Thank you. [Edited by - defused on October 4, 2004 2:41:52 AM]

Share this post


Link to post
Share on other sites
Advertisement
Try also linking with strmbase.lib and Quartz.lib. Them coupled with strmiids.lib are all I needed when using DirectShow.

Share this post


Link to post
Share on other sites
i see... but how do i link them ? By the way i am using VC++.NET 2003.. i am quite a newbie in C++ language..

Share this post


Link to post
Share on other sites
Quote:
Original post by defused
i see... but how do i link them ? By the way i am using VC++.NET 2003.. i am quite a newbie in C++ language..


I'm not positive this will work in 2003, but it works in 6.0.

#pragma comment(lib, "LIBRARY NAME HERE")
//example
#pragma comment(lib, "strmbase.lib")
//or
#pragma comment(lib, "strmbase")


The library can be specified with or without the .lib extension

Hope that helps

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!