Ignore:
Timestamp:
Sep 4, 2015, 11:47:45 PM (6 years ago)
Author:
roman
Message:

Improved event code logging, added non-ROT FGT (incomplete)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DirectShowSpy/Helper.cpp

    r464 r503  
    1717#include "resource.h"
    1818#include "FilterGraphHelper.h"
     19#include "FilterGraphTable.h"
    1920#include "MediaSampleTrace.h"
    2021
     
    6465#endif // _DEVELOPMENT
    6566
    66 #if _DEVELOPMENT //&& FALSE
     67#if _DEVELOPMENT && FALSE
    6768
    6869COMPILER_MESSAGE("Development: MediaSampleTrace test as Test")
     
    266267
    267268#endif // _DEVELOPMENT
     269
     270#if _DEVELOPMENT //&& FALSE
     271
     272COMPILER_MESSAGE("Development: CFilterGraphHelper::DoPropertyFrameModal as Test")
     273
     274#if defined(_WIN64)
     275        extern "C" __declspec(dllexport)
     276#else
     277        #pragma comment(linker, "/EXPORT:Test=_Test@0,PRIVATE")
     278        extern "C" // __declspec(dllexport)
     279#endif // defined(_WIN64)
     280
     281HRESULT STDMETHODCALLTYPE Test()
     282{
     283        _ATLTRY
     284        {
     285                CSingleThreadedApartment SingleThreadedApartment;
     286/*
     287                CGenericFilterGraph FilterGraph;
     288                FilterGraph.CoCreateInstance();
     289                __C(FilterGraph.m_pFilterGraph->RenderFile(_T("E:\\Media\\Robotica_1080.wmv"), NULL));
     290                _ATLTRY
     291                {
     292                        const CComQIPtr<ISpy> pSpy = FilterGraph.m_pFilterGraph;
     293                        if(pSpy)
     294                                __C(pSpy->put_FriendlyName(CComBSTR(_T("Test"))));
     295                }
     296                _ATLCATCHALL()
     297                {
     298                        _Z_EXCEPTION();
     299                }
     300                //CLocalObjectPtr<CFilterGraphTableItem> pFilterGraphTableItem;
     301                //__C(pFilterGraphTableItem->put_FilterGraph(FilterGraph.m_pFilterGraph));
     302                //CLocalObjectPtr<CFilterGraphTable> pFilterGraphTable;
     303*/
     304                CLocalObjectPtr<CFilterGraphHelper> pFilterGraphHelper;
     305                pFilterGraphHelper->DoFilterGraphListModal(0);
     306                //__C(pFilterGraphTableItem->put_FilterGraph(NULL));
     307        }
     308        _ATLCATCH(Exception)
     309        {
     310                _C(Exception);
     311        }
     312        return S_OK;
     313}
     314
     315#endif // _DEVELOPMENT
     316
Note: See TracChangeset for help on using the changeset viewer.