Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

CatchCulator

, 18 Oct 2005 CPOL
A tool used to catch and combine values output by different applications.
catchculator_demo.zip
TestValues2.exe
TestValues1.exe
CatchCulator.exe
catchculator_sourcecode.zip
CatchCulator.clw
CatchCulator.dsp
CatchCulator.dsw
res
bitmap1.bmp
bmp00001.bmp
bmp00002.bmp
bmp00003.bmp
bmp00004.bmp
bmp00005.bmp
bmp00006.bmp
bmp00007.bmp
bmp00008.bmp
bmp00009.bmp
bmp00010.bmp
CatchCulator.ico
catchd1.bmp
catchu1.bmp
catchu2.bmp
catchu3.bmp
d1u1.bmp
d1u2.bmp
d1u3.bmp
d2u1.bmp
d2u2.bmp
d2u3.bmp
d3u1.bmp
d3u2.bmp
d3u3.bmp
delitemu.bmp
delu1.bmp
delu2.bmp
delu3.bmp
display_1.bmp
display_2.bmp
display_3.bmp
grad.bmp
settimer.bmp
timerset.bmp
timeru2.bmp
timeru3.bmp
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 210, 34
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About CatchCulator"
FONT 8, "MS Sans Serif"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,5,6,21,20
    LTEXT           "CatchCulator Version 1.0",IDC_STATIC,29,8,119,8,
                    SS_NOPREFIX
    LTEXT           "Copyright (C) 2005, Mircea Puiu, CodeProject",
                    IDC_STATIC,29,18,144,8
    DEFPUSHBUTTON   "Ok",IDOK,180,9,20,14,WS_GROUP
END

IDD_CATCHCULATOR_DIALOG DIALOGEX 0, 0, 166, 198
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "CatchCulator"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "Ok",IDOK,0,0,16,14,NOT WS_VISIBLE
    PUSHBUTTON      "C",IDCANCEL,0,16,16,14,NOT WS_VISIBLE
    CONTROL         129,IDC_STATIC_DISPLAY1,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_REALSIZEIMAGE,2,2,143,17
    CONTROL         130,IDC_STATIC_DISPLAY2,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_REALSIZEIMAGE,2,20,143,17
    CONTROL         131,IDC_STATIC_DISPLAY3,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_REALSIZEIMAGE,2,39,143,17
    CONTROL         "CATCH",IDC_BUTTON_SHOW_CATCHER,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,69,17,16
    CONTROL         "Tree1",IDC_TREE_CATCHES,"SysTreeView32",TVS_HASLINES | 
                    TVS_EDITLABELS | TVS_SHOWSELALWAYS | TVS_FULLROWSELECT | 
                    WS_BORDER | WS_TABSTOP,1,69,143,127
    CONTROL         "D1",IDC_BUTTON_SHOW_D1,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,2,17,16
    CONTROL         "D2",IDC_BUTTON_SHOW_D2,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,20,17,16
    CONTROL         "D3",IDC_BUTTON_SHOW_D3,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,39,17,16
    LTEXT           "Monitored items",IDC_STATIC,2,59,115,9
    CONTROL         "DEL",IDC_BUTTON_DEL_TREE,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,163,17,16
    CONTROL         "DELITEM",IDC_BUTTON_DEL_ITEM,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,180,17,16
    CONTROL         "TIMER",IDC_BUTTON_TIMER,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,87,17,16
    CONTROL         "SETTIMER",IDC_BUTTON_SET_TIMER,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,147,104,17,16
    CONTROL         138,IDC_STATIC,"Static",SS_BITMAP | SS_REALSIZEIMAGE,153,
                    120,6,41
END

IDD_DIALOG_SCRIPT DIALOGEX 0, 0, 171, 98
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Script"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Ok",IDOK,0,0,16,14,NOT WS_VISIBLE
    PUSHBUTTON      "C",IDCANCEL,0,14,16,14,NOT WS_VISIBLE
    EDITTEXT        IDC_EDIT_SCRIPT,0,0,171,80,ES_MULTILINE | ES_AUTOVSCROLL | 
                    ES_WANTRETURN
    PUSHBUTTON      "Update script",IDC_BUTTON_UPDATE_SCRIPT,61,83,51,12
END


#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        BEGIN
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "CatchCulator MFC Application\0"
            VALUE "FileVersion", "1, 0, 0, 1\0"
            VALUE "InternalName", "CatchCulator\0"
            VALUE "LegalCopyright", "Copyright (C) 2005\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "CatchCulator.EXE\0"
            VALUE "ProductName", "CatchCulator Application\0"
            VALUE "ProductVersion", "1, 0, 0, 1\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 203
        TOPMARGIN, 7
        BOTTOMMARGIN, 27
    END

    IDD_CATCHCULATOR_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 159
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_DIALOG_SCRIPT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 164
        TOPMARGIN, 7
        BOTTOMMARGIN, 91
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

CATCHU                  BITMAP  DISCARDABLE     "res\\bitmap1.bmp"
CATCHD                  BITMAP  DISCARDABLE     "res\\catchu1.bmp"
CATCHF                  BITMAP  DISCARDABLE     "res\\catchu2.bmp"
CATCHX                  BITMAP  DISCARDABLE     "res\\catchu3.bmp"
D1U                     BITMAP  DISCARDABLE     "res\\catchd1.bmp"
D1D                     BITMAP  DISCARDABLE     "res\\d1u1.bmp"
D1F                     BITMAP  DISCARDABLE     "res\\d1u2.bmp"
D1X                     BITMAP  DISCARDABLE     "res\\d1u3.bmp"
D2U                     BITMAP  DISCARDABLE     "res\\bmp00001.bmp"
D2D                     BITMAP  DISCARDABLE     "res\\d2u1.bmp"
D2F                     BITMAP  DISCARDABLE     "res\\d2u2.bmp"
D2X                     BITMAP  DISCARDABLE     "res\\d2u3.bmp"
D3U                     BITMAP  DISCARDABLE     "res\\bmp00002.bmp"
D3F                     BITMAP  DISCARDABLE     "res\\d3u1.bmp"
D3D                     BITMAP  DISCARDABLE     "res\\d3u2.bmp"
D3X                     BITMAP  DISCARDABLE     "res\\d3u3.bmp"
DELU                    BITMAP  DISCARDABLE     "res\\bmp00003.bmp"
DELX                    BITMAP  DISCARDABLE     "res\\delu1.bmp"
DELF                    BITMAP  DISCARDABLE     "res\\delu2.bmp"
DELD                    BITMAP  DISCARDABLE     "res\\delu3.bmp"
DELITEMU                BITMAP  DISCARDABLE     "res\\bmp00004.bmp"
DELITEMD                BITMAP  DISCARDABLE     "res\\delitemu.bmp"
DELITEMF                BITMAP  DISCARDABLE     "res\\bmp00005.bmp"
DELITEMX                BITMAP  DISCARDABLE     "res\\bmp00006.bmp"
TIMERU                  BITMAP  DISCARDABLE     "res\\bmp00007.bmp"
SETTIMERU               BITMAP  DISCARDABLE     "res\\timerset.bmp"
TIMERD                  BITMAP  DISCARDABLE     "res\\bmp00008.bmp"
TIMERF                  BITMAP  DISCARDABLE     "res\\timeru2.bmp"
TIMERX                  BITMAP  DISCARDABLE     "res\\timeru3.bmp"
SETTIMERF               BITMAP  DISCARDABLE     "res\\settimer.bmp"
SETTIMERD               BITMAP  DISCARDABLE     "res\\bmp00009.bmp"
SETTIMERX               BITMAP  DISCARDABLE     "res\\bmp00010.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ABOUTBOX            "&About CatchCulator..."
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// German (Austria) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEA)
#ifdef _WIN32
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN_AUSTRIAN
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIALOG_SELECTOR DIALOGEX 170, 65506, 40, 68
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
EXSTYLE WS_EX_TOOLWINDOW
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Close",IDOK,0,54,40,14
    PUSHBUTTON      "C",IDCANCEL,0,0,16,14,NOT WS_VISIBLE
    PUSHBUTTON      "Hide",IDC_BUTTON_HIDE,0,40,40,14
    PUSHBUTTON      "Try",IDC_BUTTON_TRY,0,0,40,14
    PUSHBUTTON      "Catch",IDC_BUTTON_CATCH,0,26,40,14
    EDITTEXT        IDC_EDIT_TRY,0,14,40,11,ES_AUTOHSCROLL | ES_READONLY
END

IDD_DIALOG_FORMAT_DLG DIALOGEX 0, 0, 167, 60
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION " Display format"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Set",IDOK,75,38,22,14
    DEFPUSHBUTTON   "C",IDCANCEL,118,38,22,14
    LTEXT           "Current format for DX:",IDC_STATIC_LABEL,9,7,70,9
    LTEXT           "%.5lf",IDC_STATIC_CRT_FORMAT,82,7,81,9
    LTEXT           "New format:",IDC_STATIC,9,20,41,9
    EDITTEXT        IDC_EDIT_NEW_FORMAT,53,19,110,13,ES_AUTOHSCROLL
END

IDD_DIALOG_SET_TIMER DIALOGEX 0, 0, 53, 58
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION " Set timer"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "Set",IDOK,26,23,22,14
    PUSHBUTTON      "C",IDCANCEL,26,40,22,14
    COMBOBOX        IDC_COMBO_TIMER_VALUES,4,5,45,92,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_DIALOG_SELECTOR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 33
        TOPMARGIN, 7
        BOTTOMMARGIN, 61
    END

    IDD_DIALOG_FORMAT_DLG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 160
        TOPMARGIN, 7
        BOTTOMMARGIN, 53
    END

    IDD_DIALOG_SET_TIMER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 46
        TOPMARGIN, 7
        BOTTOMMARGIN, 51
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_BITMAP_D1           BITMAP  DISCARDABLE     "res\\display_1.bmp"
IDB_BITMAP_D2           BITMAP  DISCARDABLE     "res\\display_2.bmp"
IDB_BITMAP_D3           BITMAP  DISCARDABLE     "res\\display_3.bmp"
IDB_BITMAP_GRADIENT     BITMAP  DISCARDABLE     "res\\grad.bmp"

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\CatchCulator.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\CatchCulator.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog Info
//

IDD_DIALOG_SET_TIMER DLGINIT
BEGIN
    IDC_COMBO_TIMER_VALUES, 0x403, 2, 0
0x0031, 
    IDC_COMBO_TIMER_VALUES, 0x403, 2, 0
0x0035, 
    IDC_COMBO_TIMER_VALUES, 0x403, 3, 0
0x3031, "\000" 
    IDC_COMBO_TIMER_VALUES, 0x403, 3, 0
0x3032, "\000" 
    IDC_COMBO_TIMER_VALUES, 0x403, 3, 0
0x3035, "\000" 
    IDC_COMBO_TIMER_VALUES, 0x403, 4, 0
0x3031, 0x0030, 
    IDC_COMBO_TIMER_VALUES, 0x403, 4, 0
0x3032, 0x0030, 
    IDC_COMBO_TIMER_VALUES, 0x403, 4, 0
0x3035, 0x0030, 
    IDC_COMBO_TIMER_VALUES, 0x403, 5, 0
0x3031, 0x3030, "\000" 
    0
END

#endif    // German (Austria) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\CatchCulator.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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 Code Project Open License (CPOL)

Share

About the Author

Mircea Puiu
Software Developer (Senior)
Europe Europe
More than 22 years of software development experience.
SCRUM Master nowadays

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141223.1 | Last Updated 18 Oct 2005
Article Copyright 2005 by Mircea Puiu
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid