Click here to Skip to main content
15,895,808 members
Articles / Mobile Apps / Windows Mobile

Basic Instrumentation and Profiling Framework for C++

Rate me:
Please Sign up or sign in to vote.
5.00/5 (15 votes)
9 Oct 2008CPOL27 min read 76.7K   985   50  
Macro based framework written for C++ applications that will allow basic instrumentation and profiling features
========================================================================
    WIN32 APPLICATION : Instrument Project Overview
========================================================================

AppWizard has created this Instrument application for you.  

This file contains a summary of what you will find in each of the files that
make up your Instrument application.


Instrument.vcproj
    This is the main project file for VC++ projects generated using an Application Wizard. 
    It contains information about the version of Visual C++ that generated the file, and 
    information about the platforms, configurations, and project features selected with the
    Application Wizard.

Instrument.cpp
    This is the main application source file.

/////////////////////////////////////////////////////////////////////////////
AppWizard has created the following resources:


Instrumentppc.rc
    This is a listing of all of the Microsoft Windows resources that the
    program uses when compiling for the Pocket PC 2003 platform, or a platform 
    that supports the same user interface model. It includes the icons, bitmaps, 
    and cursors that are stored in the RES subdirectory.  This file can be 
    directly edited in Microsoft Visual C++. When the .rc file is persisted, 
    the defines in the data section are persisted as the hexadecimal version
    of the numeric value they are defined to rather than the friendly name of
    the define.

Instrumentppc.rc2
    This file contains resources that are not edited by Microsoft 
    Visual C++.  You should place all resources not editable by
    the resource editor in this file.

Resourceppc.h
    This is the standard header file, which defines new resource IDs.
    Microsoft Visual C++ reads and updates this file.




Instrument.ico
    This is an icon file, which is used as the application's icon (32x32).
    This icon is included by the main resource file Instrument.rc.

/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
    These files are used to build a precompiled header (PCH) file
    named Instrument.pch and a precompiled types file named StdAfx.obj.

/////////////////////////////////////////////////////////////////////////////
Other notes:

AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.

/////////////////////////////////////////////////////////////////////////////s

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)


Written By
Engineer
United States United States
I am a software architect and I have been developing software for nearly two decades. Over the years I have learned to value maintainable solutions first. This has allowed me to adapt my projects to meet the challenges that inevitably appear during development. I use the most beneficial short-term achievements to drive the software I develop towards a long-term vision.

C++ is my strongest language. However, I have also used x86 ASM, ARM ASM, C, C#, JAVA, Python, and JavaScript to solve programming problems. I have worked in a variety of industries throughout my career, which include:
• Manufacturing
• Consumer Products
• Virtualization
• Computer Infrastructure Management
• DoD Contracting

My experience spans these hardware types and operating systems:
• Desktop
o Windows (Full-stack: GUI, Application, Service, Kernel Driver)
o Linux (Application, Daemon)
• Mobile Devices
o Windows CE / Windows Phone
o Linux
• Embedded Devices
o VxWorks (RTOS)
o Greenhills Linux
o Embedded Windows XP

I am a Mentor and frequent contributor to CodeProject.com with tutorial articles that teach others about the inner workings of the Windows APIs.

I am the creator of an open source project on GitHub called Alchemy[^], which is an open-source compile-time data serialization library.

I maintain my own repository and blog at CodeOfTheDamned.com/[^], because code maintenance does not have to be a living hell.

Comments and Discussions