Re: [INTERFACES] Re: ODBC 16 bit support - Mailing list pgsql-interfaces

From Vince Vielhaber
Subject Re: [INTERFACES] Re: ODBC 16 bit support
Date
Msg-id Pine.OS2.3.96.980419133455.40M-100000@paprika.michvhf.com
Whole thread Raw
In response to Re: [INTERFACES] Re: ODBC 16 bit support  (Hannu Krosing <hannu@trust.ee>)
List pgsql-interfaces
On Sun, 19 Apr 1998, Hannu Krosing wrote:

> Of course it would be nice if it supported the other platforms whith
> ODBC capabilitries: alse Macs and UNIX.

There's no reason it can't.  You write the driver using a common set of
functions from the std C or C++ libs.  ANYTHING that is OS specific is
called using a generic name (eg. AllocateSomeMemory()) and have the
function in an OS specific file and it can call the correct function for
that OS.  I've written a number of things this way and do my testing and
debugging of the main routines in OS/2.  Quickly write a file to handle
the windows 16 and 32 and the unix stuff and compile on the machines it's
going to.  Unless I add things that require additions to the OS specific
files, I may not need to touch them again and the main app is updated
easily.

Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH   email: vev@michvhf.com   flame-mail: /dev/null
       # include <std/disclaimers.h>                   TEAM-OS2
   Online Searchable Campground Listings    http://www.camping-usa.com
              "I'm just not a fan of promoting stupidity!
            We have elected officials for that job!" -- Rock
==========================================================================



pgsql-interfaces by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [INTERFACES] Re: ODBC 16 bit support
Next
From: The Hermit Hacker
Date:
Subject: Re: [INTERFACES] Re: ODBC 16 bit support