Click here to Skip to main content
11,576,993 members (59,022 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ .NET
Hi there,

can anybody show me an easy programm that uses directshow methods with a CLR/WinForm App? I've already made some successful samples using directshow under Win32/WinForm App.
But when i made the same thing in CLR/WinForm, it has always errors, for example like that:
1>TEST.obj : error LNK2020: Unresolved token (0A000016) IID_IMediaEvent.
1>TEST.obj : error LNK2020: Unresolved token (0A000017) IID_IMediaControl. 
1>TEST.obj : error LNK2020: Unresolved token (0A000019) CLSID_FilterGraph.
1>TEST.obj : error LNK2020: Unresolved token (0A00001A) IID_IGraphBuilder.
1>TEST.obj : error LNK2001: Unresolved extern symbol "IID_IMediaEvent".
1>TEST.obj : error LNK2001: Unresolved extern symbol "IID_IMediaControl".
1>TEST.obj : error LNK2001: Unresolved extern symbol "IID_IGraphBuilder".
1>TEST.obj : error LNK2001: Unresolved extern symbol "CLSID_FilterGraph".
1>c:\dokumente und einstellungen\cmadmin\eigene dateien\visual studio 2010\Projects\TEST\Debug\TEST.exe : fatal error LNK1120: 8 Unresolved extern references.

although i did add strmiids.lib, quartz.lib and ole32.lib before.

Thank you very much!
Posted 19-Sep-12 2:55am
Edited 20-Sep-12 20:23pm
v8
Comments
Wes Aday at 19-Sep-12 9:12am
   
And for those of us that do not speak German?
christmars at 19-Sep-12 9:16am
   
sorry! i've already translated it...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Have a look at: __uuidof Operator[^] and #pragma managed[^]

As long as you have something that works for Win32 this should help you to get things working with managed code.

Best regards
Espen Harlinn
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 221
1 DamithSL 155
2 OriginalGriff 155
3 Abhinav S 130
4 Afzaal Ahmad Zeeshan 95
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 631
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 365


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 21 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100