Initializing the Prolog Engine From VB

The Visual Basic interface must be explicitly initialized: you must call PrologInit() before calling any other interface function. The PrologInit() function loads and initializes the interface. It returns 1 if the initialization was successful, and -1 otherwise.