Visual Prolog project TESTDLL.VPR for building DLL without VPI, only with PROLOG.LIB.
Look at TESTDLL.DEF for list of exported functions.
See also Using Visual Prolog DLL’s from other languages.