Click here to Skip to main content
15,896,154 members
Articles / Web Development / HTML

TraceTool 12.7: The Swiss-Army Knife of Trace

Rate me:
Please Sign up or sign in to vote.
4.97/5 (234 votes)
20 Nov 2016CPL19 min read 2M   39K   1K  
A C#, C++, Delphi, ActiveX , Javascript , NodeJs and Java trace framework and a trace viewer: Tail, OutputDebugString, event log, and with Log4J, Log4Net, and Microsoft Enterprise Instrumentation Framework (EIF) support. This also comes with full support for Pocket PC, Silverlight, and Android.
// VS8_Mfc_Demo.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "VS8_WinMfc_Demo.h"
#include "MainFrm.h"
#include "propsht.h"
#include "..\..\Source\tracetool.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CVS8_Mfc_DemoApp

BEGIN_MESSAGE_MAP(CVS8_Mfc_DemoApp, CWinApp)
	ON_COMMAND(ID_APP_ABOUT, &CVS8_Mfc_DemoApp::OnAppAbout)
END_MESSAGE_MAP()


// CVS8_Mfc_DemoApp construction

CVS8_Mfc_DemoApp::CVS8_Mfc_DemoApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}


// The one and only CVS8_Mfc_DemoApp object

CVS8_Mfc_DemoApp theApp;


// CVS8_Mfc_DemoApp initialization

BOOL CVS8_Mfc_DemoApp::InitInstance()
{
    // InitCommonControlsEx() is required on Windows XP if an application
    // manifest specifies use of ComCtl32.dll version 6 or later to enable
    // visual styles.  Otherwise, any window creation will fail.
    INITCOMMONCONTROLSEX InitCtrls;
    InitCtrls.dwSize = sizeof(InitCtrls);
    // Set this to include all the common control classes you want to use
    // in your application.
    InitCtrls.dwICC = ICC_WIN95_CLASSES;
    InitCommonControlsEx(&InitCtrls);

    CWinApp::InitInstance();

    CAllControlsSheet sheet (_T("TraceTool demo")); 
    m_pMainWnd = &sheet;
    INT_PTR nResponse = sheet.DoModal ();

    //TTrace::Stop() ;

    return FALSE;
}


// CVS8_Mfc_DemoApp message handlers




// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
	CAboutDlg();

// Dialog Data
	enum { IDD = IDD_ABOUTBOX };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

// Implementation
protected:
	DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()

// App command to run the dialog
void CVS8_Mfc_DemoApp::OnAppAbout()
{
	CAboutDlg aboutDlg;
	aboutDlg.DoModal();
}


// CVS8_Mfc_DemoApp message handlers

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Public License Version 1.0 (CPL)


Written By
Architect
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions