The DAO method samples are designed to illustrate the DAO methods in a simple, yet effective manner. Thus, the samples are written as ANSI console applications because they are the easiest type of application to read and require the least prior knowledge to understand.
The samples should also work as Unicode console applications, but they will require modification.
Note The samples are already partially modified for your convenience. But why is there any support at all for Unicode when the samples are designed for ANSI builds? Frankly, to encourage you to write your future applications so they will be able to handle ANSI or Unicode.
To convert the method samples to Unicode
These samples are the Microsoft Visual C++ equivalents of the Visual Basic DAO samples, so it was necessary to map Microsoft Visual Basic functionality to equivalent Microsoft Visual C++ constructs. However, certain constructs in the ANSI build (such as _cgets) have no Unicode equivalent. In this case you must change the program logic to get the desired result.