C DLL Example:

First build the example:
  
  % make

If you don't have make (or if your version of make can't grok it), use
the supplied .bat file:
  
  c:\> makeit

This will create usedll.exe. Run it:

  % ./usedll

[ DOS people use "usedll" without the "./" ]

You should see the following output. If not, then please report it as a
bug along with the output you *do* see.
  
  dll_int_square (3) = 9
  dll_float_square (3.0) = 9.000000
  dll_double_square (3.0) = 9.000000
  Global integer variable: Should be 99
    directly                  : 99
    via DLL accessor function : 99
  Global integer variable: Setting value to -31 directly
  Global integer variable:
    directly                  : -31
    via DLL accessor function : -31
  Global integer variable: Setting value to 27 in-directly
  Global integer variable:
    directly                  : 27
    via DLL accessor function : 27
