Creating a Logbook

Environment: VC++

Introduction

The CLogbook class is a class for implementing a logbook in an MFC application. Here's an architecture of the logbook class.



Click here for a larger image.

Using the CLogbook Class

  1. Declare a LOGBOOK_INIT_INFOS structure and initialize it with the InitInfos function.
  2. Declare a LOGBOOK_INIT_FILE_INFOS structure and initialize it with the InitInfos function (only if you want to use a file logbook).
  3. Declare a LOGBOOK_INIT_GUI_INFOS structure and initialize it with the InitInfos function (only if you want to use a GUI logbook).
  4. Call the Initialize function:
    • File parameter can be NULL if no file logbook needed.
    • GUI parameter can be NULL if no GUI logbook needed.
  5. Call AttachFile function to attach a file logbook to base class.
  6. Call AttachGUI function to attach a file logbook to base class.

Downloads

Download demo project - 165 Kb (source must also be downloaded)
Download source code - 81 Kb


Comments

  • Fields disabling

    Posted by Legacy on 09/03/2003 12:00am

    Originally posted by: Pkun

    Good control. It is what i need.

    Can i disable date/time and text type fields? If i set an empty string to date/time format I see a tabulation in GUI component and date/time (in default format) in log file. If I set an empty string to personal text type I see a tabulation in GUI.
    I don't need these fields now. Can I disable them at all (no tabulation in GUI and in log file)?

    Reply
  • dinamic Adding

    Posted by Legacy on 07/14/2003 12:00am

    Originally posted by: allie

    If this can add the information according to the other operation,sunch as file encypt,it will be better.

    Reply
  • printing

    Posted by Legacy on 06/11/2003 12:00am

    Originally posted by: Walter Reiser

    A fine piece of code, but to be able to print the logbook would improve it a lot ( I know this can be troublesome to code )
    With regards

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: November 6, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Are you wanting to target two or more platforms such as iOS, Android, and/or Windows? You are not alone. 90% of enterprises today are targeting two or more platforms. Attend this eSeminar to discover how mobile app developers can rely on one IDE to create applications across platforms and approaches (web, native, and/or hybrid), saving time, money, and effort and introducing apps to market faster. You'll learn the trade-offs for gaining long …

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds