Microsoft Visual Basic Example. (NONGUI)

This example shows the way, which you can use to send data of different types (integer, real, string) to Prolog DLLs and get it back.

Pressing SET pushbutton - You send data from the MS Visual Basic application and save it in the Prolog DLL.

Pressing GET pushbutton - You retrieve data from the Prolog DLL and display it in the Visual Basic application.

 

- Run Microsoft Visual Basic.

- Open Visual Basic project file (VB_Dll.vbp)

- Activate command Run | Start With Full Compile (Ctrl + F5)

The example uses the Visual Prolog DLLs from Examples\DLLS subdirectory, so these DLLs have to be compiled before the example runs.

This example is tested with MS Visual Basic 5.0 and 6.0.