How to use YACL with Microsoft Visual C++

Last update: June 29, 1997

This file provides directions on how to build YACL and its demo programs using Microsoft Visual C++.

Caveat: YACL cannot be built with the Win16 versions (1.52 and earlier) of Visual C++, because those versions do not have adequate support for templates. I have tested YACL with VC++ version 2.1 under Windows NT version 3.51.

Building YACL

Here are the steps:

You can also build a debug version of the library via the command

Known problems

Under VC++ 2.1, the iostream classes seem to allocate memory dynamically and release it when the program terminates. The result is that the allocated memory shows up as a leak in the memory leak checker's output, although very likely it isn't a leak.

VC++ seems to generate improper code for default arguments to functions in some circumstances. I had to put in a workaround for this; look in the file basedemo/format1.cxx for an example. Look also in apps/dlged/dlgedit.cxx.

The GUI demos have a peculiar problem: some SimpleVObjects (e.g., the Label, ToggleButton and ExOrToggleButton), when created as children of a CompositeVObject, show a grey background instead of a white one. This should be the default behavior if the object is a child of a Dialog, not a CompositeVObject. This phenomenon does not occur under the other compilers (Borland and Watcom), so it must be something specific to the VC++ runtime system.

VC++ does not include POSIX routines for directory handling. Consequently the Directory class is not supported under that compiler.