// testdll3.cc (emx+gcc)

#include <string.h>
#define INCL_VIO
#include <os2.h>
#include "testdll3.h"

vio::vio ()
{
  txt = 0;
  write ("vio constructor called\r\n");
}


vio::vio (const char *msg)
{
  txt = msg;
  write ("vio constructor called: ");
  write (msg);
  write ("\r\n");
}


vio::~vio ()
{
  write ("vio destructor called");
  if (txt != 0)
    {
      write (": ");
      write (txt);
    }
  write ("\r\n");
}


void vio::write (const char *s)
{
  VioWrtTTY ((const unsigned char *)s, strlen (s), 0);
}


static vio one ("DLL1");
static vio two ("DLL2");
