Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tree view control with check boxes Pin
kalyan_gowl27-Dec-06 21:37
kalyan_gowl27-Dec-06 21:37 
GeneralRe: Tree view control with check boxes Pin
ramesh_s2127-Dec-06 23:54
ramesh_s2127-Dec-06 23:54 
GeneralRe: Tree view control with check boxes Pin
Hamid_RT29-Dec-06 17:36
Hamid_RT29-Dec-06 17:36 
AnswerRe: Tree view control with check boxes Pin
Hamid_RT28-Dec-06 5:47
Hamid_RT28-Dec-06 5:47 
QuestionHow to get data from clipboard Pin
Max++27-Dec-06 18:58
Max++27-Dec-06 18:58 
AnswerRe: How to get data from clipboard Pin
_AnsHUMAN_ 27-Dec-06 19:05
_AnsHUMAN_ 27-Dec-06 19:05 
AnswerRe: How to get data from clipboard Pin
prasad_som27-Dec-06 19:09
prasad_som27-Dec-06 19:09 
QuestionDirectshow custom filter linking problem Pin
godspeed12327-Dec-06 18:47
godspeed12327-Dec-06 18:47 
Hi,

I have finally got a sample test filter working with the help of Mark Salsbery.

I have written a Source Filter using the sample code provided in the Directshow SDK more specifically I have used the CPushSourceDesktop source filter. I havent changed the name, but I have changed all the GUID's and stuff.

I then ran the filter in GraphEdit and it runs without any problems.

So now I am wanting to access this in C++ code, my understnading is that if it works in GraphEdit, then it has to work in C++. So I know the problem is there is something I am not linking to it.

So I have taken what Mark has said

http://www.codeproject.com/script/comments/forums.asp?msg=1820218&forumid=1647&XtraIDs=1647&sd=29+Sep+2006&ed=28+Dec+2006&author=godspeed123&stype=1#xx1820218xx[^]

and implemented it, all of the source filter is working and compiles fine

So now in the C++ program that I want to run this in I have done the following

CPushSourceDesktop *pMyFilter;

and then do this

hr = CoCreateInstance(CLSID_PushSourceDesktop, NULL, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, reinterpret_cast(&pMyFilter));
hr = pGraph->AddFilter(pMyFilter, L"PushSource Desktop Filter");

IMySourceFilter *pifMySource = NULL;
pMyFilter->QueryInterface(IID_IMySource, reinterpret_cast(&pifMySource));


Its giving me linking errors :

error LNK2001: unresolved external symbol _IID_IMySource
error LNK2001: unresolved external symbol _CLSID_PushSourceDesktop

I included everything

#include "Dshow.h"
#include "Qedit.h"
#include "Streams.h"
#include "PushGuids.h"
#include "PushSource.h"

and the lib I included Strmiids.lib Quartz.lib MemorySource.lib

I am getting these two linking errors which mean I am not putting something into the IDE.

Any help would be appreiciated
AnswerRe: Directshow custom filter linking problem Pin
Mark Salsbery28-Dec-06 5:54
Mark Salsbery28-Dec-06 5:54 
QuestionHiding the ListCtrl item Pin
Taruni27-Dec-06 18:42
Taruni27-Dec-06 18:42 
AnswerRe: Hiding the ListCtrl item Pin
ThatsAlok27-Dec-06 22:17
ThatsAlok27-Dec-06 22:17 
Questionif statement help Pin
dellthinker27-Dec-06 18:33
dellthinker27-Dec-06 18:33 
AnswerRe: if statement help Pin
prasad_som27-Dec-06 18:45
prasad_som27-Dec-06 18:45 
GeneralRe: if statement help Pin
dellthinker27-Dec-06 19:00
dellthinker27-Dec-06 19:00 
AnswerRe: if statement help Pin
prasad_som27-Dec-06 19:04
prasad_som27-Dec-06 19:04 
GeneralRe: if statement help Pin
dellthinker27-Dec-06 19:15
dellthinker27-Dec-06 19:15 
AnswerRe: if statement help Pin
Michael Dunn27-Dec-06 19:29
sitebuilderMichael Dunn27-Dec-06 19:29 
QuestionRunning exe problem Pin
aaaan27-Dec-06 18:13
aaaan27-Dec-06 18:13 
GeneralRe: Running exe problem Pin
prasad_som27-Dec-06 18:21
prasad_som27-Dec-06 18:21 
GeneralRe: Running exe problem Pin
aaaan27-Dec-06 18:29
aaaan27-Dec-06 18:29 
AnswerRe: Running exe problem Pin
prasad_som27-Dec-06 18:36
prasad_som27-Dec-06 18:36 
QuestionQuestion is for prasad_som Pin
amitmistry_petlad 27-Dec-06 17:29
amitmistry_petlad 27-Dec-06 17:29 
GeneralRe: Question is for prasad_som Pin
prasad_som27-Dec-06 17:38
prasad_som27-Dec-06 17:38 
AnswerRe: Question is for prasad_som Pin
Hamid_RT27-Dec-06 18:14
Hamid_RT27-Dec-06 18:14 
GeneralRe: Question is for prasad_som Pin
amitmistry_petlad 27-Dec-06 20:38
amitmistry_petlad 27-Dec-06 20:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.