Subject: DLL problems.

From: "Sergio Arias Sanchez" <[email-masked]>
Date: Tue, 08 Jun 1999 12:17:54 +0200

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.