ActiveX Control Tutorial: Multialarm Clock

Environment: VC++ Version 6.0, Windows 2000

This article is intended as a tutorial with a practice lab for building an ActiveX control. It shows how to:

  • Add the new property page in an ActiveX control
  • Use the FireEvent() function of an ActiveX control in an application
  • Add the custom method and efficiently use the custom method in ActiveX application

I also attached the step-by-step files (in each folder), which detail very clearly the steps in building the ActiveX control and using it.

The practice labs perform the ActiveX control clock and then use the ActiveX control clock to obtain the multialarm clock application. The features of multialarm clock are:

  • The user could set the clock for as many as 10 alarms.
  • The user could set how long each alarm rings.
  • The user could set the particular sound file for each alarm. If the sound file is not set, the alarm will beep.
  • The clock alarms will be noticed when the user sets each alarm. The information is shown in order of the next alarm.

Downloads

The files are in two parts (the ActiveX control and using the ActiveX control), as follow.

  1. The ActiveX control includes two folders:
    1. The ActiveX control of a simple clock
    2. The ActiceX control clock, adding some more features

  2. The application of ActiveX control includes two folders (both use the ActiveX control clock shown in 1b):
    1. The simple application uses the ActiveX control clock
    2. The multialarm clock application uses the rich features of an ActiveX control clock

Download Project

ActiveX Clock 01 (3.8 MKB)
ActiveX Clock 02 (3.4 MB)

Alarm Clock Application (5.4 MB)
Multi-Alarm Clock Application (5.5 MB)


Comments

  • data corrupted in zip

    Posted by Legacy on 05/17/2002 12:00am

    Originally posted by: mr.escape

    In "MultiAlarmUseClock1.zip" the *.doc file is corrupted.

    Please also delete "Debug" folder, *.ncb, *.plg, *.aps and ftp log files (everything but the source files) in the zip files. This would reduce the archive size from 18MB to 1.8MB!!!

    thx!

    mr.escape

    • Broken link

      Posted by myron on 05/03/2006 05:34am

      Even http://www.engr.colostate.edu/~jackphan/ is gone. Not to say the document.

      Reply
    Reply
  • Delete *.pch,*.obj to reduce the size of zip

    Posted by Legacy on 05/15/2002 12:00am

    Originally posted by: fareed khatri

    you must delete unnecessary files of projects.

    Reply
  • too big archives

    Posted by Legacy on 05/14/2002 12:00am

    Originally posted by: abc

    the zip files are too big
    delete all not relevant files
    e.g. all PCH and PDB files etc.

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

Top White Papers and Webcasts

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • On-demand Event Event Date: October 29, 2014 It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this webcast, Gene Kim discusses these survey findings and shares woeful tales of artifact management gone wrong! Gene also shares examples of how high-performing DevOps …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds