Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!news2.near.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!news.sprintlink.net!uunet!fonorola!infoshare!whome!gts!feline!king
From: king@feline.gts.org (KingLeon)
Subject: Re: Using PDC Prolog from OWL
Message-ID: <1994Sep24.002846.10402@feline.gts.org>
Organization: Humber College Technology Dept.
References: <35ob8v$dq4@cantua.canterbury.ac.nz> <barryn.780152518@BIX.com>
Date: Sat, 24 Sep 1994 00:28:46 GMT
Lines: 22

In article <barryn.780152518@BIX.com> barryn@BIX.com (barryn on BIX) writes:
> 
>     >...K. Morton: Using PDC Prolog from OWL
> 
> Calling Borland C/C++ code from PDC works well if you follow
> the guidelines in the PDC manual. Do you have PDC Prolog 
> installed on a machine? Look in the \PROLOG\FOREIGN\TC
> directory for some samples. You can treat a C function as
> a predicate, and you can even implement multiple-arity predicates
> by naming your C functions with a certain naming convention.
> 
> Barry Nance
>    author, "Using OS/2 2.1",
>    "Intro to Networking", "Client/Server LAN Programming",
>    "Network Programming in C", and "Networking Window for Workgroups".
>    Working on "Guide to LAN Server".
Its not quite as easy as Barry makes it out to be.  I found that I had  
problems with the Borland compiler in delaying a direct reference to a
routine in the prolog dll file.  Use the routine GetProcAddress to load
the routine address.


