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.

  Global integer variable = 5
  DllClass 1 (Imported from DLL):
    virtual_method = 1
    non_virtual_method = 1
    instances = 2
  DllClass 2 (Imported from DLL):
    virtual_method = 8
    non_virtual_method = 4
    instances = 2
  DllClass (Local):
    virtual_method = 27
    non_virtual_method = 9
    instances = 3
    
