From SARIAS@sag.es  Tue Jun  8 12:42:20 1999
Received: from fwall.sag.es (fwall.sag.es [195.99.195.131])
	by swi.swi.psy.uva.nl (8.9.3/8.9.3) with SMTP id MAA23029
	for <prolog@swi.psy.uva.nl>; Tue, 8 Jun 1999 12:42:18 +0200 (MET DST)
Received: by fwall.sag.es; (5.65v3.2/1.3/10May95) id AA15192; Tue, 8 Jun 1999 12:50:56 +0200
Received: from SAG-Message_Server by sag.es
	with Novell_GroupWise; Tue, 08 Jun 1999 12:18:57 +0200
Message-Id: <s75d0a31.096@sag.es>
X-Mailer: Novell GroupWise 5.2
Date: Tue, 08 Jun 1999 12:17:54 +0200
From: "Sergio Arias Sanchez" <SARIAS@sag.es>
To: prolog@swi.psy.uva.nl
Subject: DLL problems.
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by swi.swi.psy.uva.nl id MAA23029


Hi everybody.

 I defined a DLL (Windows NTv 4, MSVC++ 5.0) to be used in my prolog programs
 (SWI Prolog v 3.2.7). The problem is that whenever I try to load with 
load_foreign_library/1, it fails when calling entry point install.

  Right now, I just have the following:

  #include <SWI-Prolog.h>
  #include <stdio.h>

  static foreign_t pl_hw()
  {      return printf("\n Hello world\n");
  }

  install_t install()
  {      PL_register_foreign("hw", 0, pl_hw, 0);
  }


  What's wrong?

  Cheers

     Sergio Arias.

