Changeset 231 for trunk/DirectShowSpy/Helper.cpp
- Timestamp:
- Jan 9, 2014, 2:51:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DirectShowSpy/Helper.cpp
r199 r231 1 1 //////////////////////////////////////////////////////////// 2 // Copyright (C) Roman Ryltsov, 2008-201 32 // Copyright (C) Roman Ryltsov, 2008-2014 3 3 // Created by Roman Ryltsov roman@alax.info 4 4 … … 6 6 #include "resource.h" 7 7 #include "FilterGraphHelper.h" 8 9 //////////////////////////////////////////////////////////// 10 // Test 11 12 #if _DEVELOPMENT 13 14 COMPILER_MESSAGE("Development: CFilterGraphHelper::DoPropertyFrameModal as Test") 15 16 #if defined(_WIN64) 17 extern "C" __declspec(dllexport) 18 #else 19 #pragma comment(linker, "/EXPORT:Test=_Test@0,PRIVATE") 20 extern "C" // __declspec(dllexport) 21 #endif // defined(_WIN64) 22 23 HRESULT STDMETHODCALLTYPE Test() throw() 24 { 25 _ATLTRY 26 { 27 CSingleThreadedApartment SingleThreadedApartment; 28 CGenericFilterGraph FilterGraph; 29 FilterGraph.CoCreateInstance(); 30 __C(FilterGraph.m_pFilterGraph->RenderFile(_T("E:\\Media\\Robotica_1080.wmv"), NULL)); 31 CLocalObjectPtr<CFilterGraphHelper> pHelper; 32 pHelper->SetFilterGraph(FilterGraph.m_pFilterGraph); 33 pHelper->DoPropertyFrameModal(0); 34 } 35 _ATLCATCH(Exception) 36 { 37 _C(Exception); 38 } 39 return S_OK; 40 } 41 42 #endif // _DEVELOPMENT
Note: See TracChangeset
for help on using the changeset viewer.