Microsoft Visual Java program which uses a non-GUI Visual Prolog DLL

 

Copyright (c) 1984 - 1998 Prolog Development Center A/S

Written by Konstantin Ivanov

 

Note:

This example uses MS J/Direct technology. A support of this technology is provided in MS Visual J++ Compiler Version 1.02.7315 or higher. Use this jvc.exe and according jview.exe to compile and test the example.

 

Short description of the example: 

This example demonstrates how Microsoft J++ program can use Prolog code that is contained in DLL. The main target of the example is to show how J++ program can pass (set*** predicates) and retrieve (get*** predicates) different types of data with the help of export functions of Visual Prolog DLL. The following Prolog data types are used: integer, real, string. The values of these types are printed to a screen before set operation and after get operation.

 

How to run the example:

Change a path to jvc.exe and jview.exe in makefile. and go.bat files if needed.

To build the example: nmake -f makefile

To run the example: go.bat

 

See also: Using Visual Prolog DLL’s from other languages