DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Implementation

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
// TestScriptHelper.h : Declaration of the CTestScriptHelper

#ifndef __TESTSCRIPTHELPER_H_
#define __TESTSCRIPTHELPER_H_

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CTestScriptHelper
class ATL_NO_VTABLE CTestScriptHelper : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CTestScriptHelper, &CLSID_TestScriptHelper>,
	public IDispatchImpl<DITestScriptHelper, &IID_DITestScriptHelper, &LIBID_CbrowseLib>
{
public:
	CTestScriptHelper()
	{
		m_pBrowserInfo = NULL;
	}

	BrowserInfo *m_pBrowserInfo;

DECLARE_REGISTRY_RESOURCEID(IDR_TESTSCRIPTHELPER)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CTestScriptHelper)
	COM_INTERFACE_ENTRY(DITestScriptHelper)
	COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()

// DITestScriptHelper
public:
	STDMETHOD(get_TestCGI)(/*[out, retval]*/ BSTR *pVal);
	STDMETHOD(get_TestURL)(/*[out, retval]*/ BSTR *pVal);
	STDMETHOD(put_Result)(/*[in]*/ TestResult newVal);
	STDMETHOD(get_WebBrowser)(/*[out, retval]*/ LPDISPATCH *pVal);
	STDMETHOD(OutputString)(BSTR bstrMessage);
};

typedef CComObject<CTestScriptHelper> CTestScriptHelperInstance;

#endif //__TESTSCRIPTHELPER_H_