Community articleRunning Calculate Age For COM
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.



The Calculate Age sample for COM is written in Visual Basic and the sample project files were generated using Microsoft Visual Basic 6.0. To run the sample, follow these steps:
  1. Using the Viewer, open the form called CalculateAge.xfd located in the folder:
  2.    <API Installation Folder>\samples\Win32\COM\demo\calculate_age\

  3. Change the name and birth date if you want, then save and close the form.
  4. Load the Calculate Age project files in Microsoft Visual Studio and compile them.
    • This produces a new executable called CalculateAge.exe.
  5. Run CalculateAge.exe.
    • This creates a form called output.xfd in the current folder.
  6. Open the output.xfd form, and check the number in the Age field.