Berkeley DB Reference Guide:
Building Berkeley DB for Windows systems

PrevRefNext

Unicode support

Unicode support requires a separate configuration step on Windows. To enable Unicode support, perform the following steps:

  1. Right click on the "db_dll" project and choose Settings... (Visual Studio .NET: Properties), then C/C++. The "Preprocessor definitions" should read:
    DB_CREATE_DLL,...

    Change it to read:

    UNICODE,_UNICODE,DB_CREATE_DLL,...

    You will have to do this twice: once for the debug build and once for the release build. If you also require static libraries, repeat for the "db_static" project (there the first symbol is "CONFIG_TEST" for the Debug Static build and "WIN32" for the Release Static build).

  2. Select "Rebuild All" from the Build menu.

To build binaries that can also run on Windows 9x or ME, follow the instructions at Microsoft's web site.


PrevRefNext

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.