Developing a Demographics Library Application - demographics_library - Latest

Demographics Library Reference for Windows and UNIX

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Demographics Library
Version
Latest
ft:locale
en-US
Product name
Demographics Library
ft:title
Demographics Library Reference for Windows and UNIX
Copyright
2024
First publish date
1994
ft:lastEdition
2025-10-14
ft:lastPublication
2025-10-14T21:16:32.399000
L1_Product_Gateway
L2_Product_Segment
L3_Product_Brand
L4_Investment_Segment
L5_Product_Group
L6_Product_Name

Once Demographics Library has been initialized, there are many options available through the Demographics Library functions. One approach is outlined below:

  1. Initialize Demographics Library using DlSetLicense and DlInit.
  2. Open one or more data files using DLFileOpen.
  3. Get data file attributes using DlFileGetAttribute.
  4. Search data file for key information using DlFileSearch.
  5. Specify a field using DlFieldGet or DlFieldGetN.
  6. Return data for the field located in step 5 using DlFieldGetString, DlFieldGetNum, DlFieldGetAttribute, DlFieldGetValueAttribute
  7. Repeat steps 4, 5 and 6 as necessary.
  8. Close open data files using DlFileClose.
  9. Close Demographics Library using DlTerm.

Sample Program contains the code listing for a sample program in C illustrating the use of Demographics Library as outlined above. A complete version of this program (DEMOTEST.C) can also be found on your distribution disk in the Demographics Library directory.

DL.H

The C header file DL.H (the file may have different extensions and function definitions for other development systems) contains all symbolic constants used or returned by the Demographics Library functions. This file is extensively commented and it is recommended that you review this file before using any Demographics Library functions.

Using Demographics Library in Windows

To successfully use the Demographics Library in Windows, be sure one of the following symbols is defined:

__NT__

Note: While you will not be warned with compile or link errors if these symbols are undefined, your application will not function properly. The most common error is to run out of stack space. Though Microsoft compilers typically define these symbols for you, we strongly recommend that you define them in your project.

Using Demographics Library in UNIX

When using Demographics Library in UNIX, be sure the following symbol is defined:

__UNIX

On 64-bit machines, the following symbol must also be defined:

__64BIT

The static library file name is libdemolib.a on all UNIX platforms. The shared library file name is libdemolib.so for AIX and Solaris, and libdemolib.sl for HP-UX. The symbolic link on all UNIX platforms is libdemolib.so/sl.38.04.