Node:Loading the Prolog Code, Previous:Deinitializing the Prolog Engine From VB, Up:How to Use the Interface

Loading the Prolog Code

Prolog code (source or object code) can be loaded by submitting normal Prolog load predicates as queries. Note that SICStus uses slashes / in file names where Windows uses backslash \. Example:


To facilitate the location of Prolog files, two file search paths are predefined:

identifies the directory path of the Visual Basic project or the applications executable.

That is, you can load the file myfile located in the same directory as the project/executable, issuing the query:


right in cope with initial backslash

identifies the directory path of the vbsp.dll file.

That is, you can use the following query to load the file myfile if it is located in the same directory as vbsp.dll:


Note that, as of SICStus 3.10, you can use the application and runtime file search paths to achieve a similar effect.