Computing.Net > Forums > Programming > linking Visual Basic to Prolog...

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

linking Visual Basic to Prolog...

Reply to Message Icon

Name: Hayley
Date: May 4, 2002 at 17:04:49 Pacific
Comment:

I'm trying to write an expert system for my coursework and it needs to have both a pretty user interface and a good reasoning engine, so I want to combine VB and Prolog - I can't find out how to do so anywhere - any ideas?



Sponsored Link
Ads by Google

Response Number 1
Name: Jeff
Date: May 4, 2002 at 21:23:22 Pacific
Reply:

Other than compiling a Windows DLL in prolog, and writing Declares in VB to access it (if it can even be done), I know of no straightforward way. VB is really a wrapper around C++ when compiled (it uses C2.exe and Link.exe right from Visual C++), so think C++ combined with prolog.

I don't know about prolog compilers, but my suspicion is that the calling convention is not __stdcall (pascal), as VB expects with Win32 API stuff. Thus, you'd have to write your prolog DLL according to COM standards, then create a typelib for it, so VB can communicate with it. Don't even think about getting VB5/6 to do something other than COM.


0

Response Number 2
Name: Ajay
Date: June 19, 2002 at 18:20:54 Pacific
Reply:

Hey man:
Try using Amzi! Prolog. The site is www.amzi.com. They provide their own logic server in the form of a dll called amzi.dll which you will have to install in your system directory. Once this is done, you can use the zillion functions provided in the dll in the classical API style. Very simple and very very efficient. Happy programming!!


0

Response Number 3
Name: Niall
Date: July 29, 2002 at 05:20:03 Pacific
Reply:

Thanks for the useful info.

For anyone else also having this problem my research has also turned up VisualProlog - which can create dlls.

http://www.pdc.dk/vip/

I dunno which i'm going to use yet - any feed back on bad experience?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


how to call a batch file ... VB



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: linking Visual Basic to Prolog...

Visual Basic Security Curiousity www.computing.net/answers/programming/visual-basic-security-curiousity/7068.html

Visual Basic for Excel97 www.computing.net/answers/programming/visual-basic-for-excel97/9351.html

Visual Basic 2005, write to file www.computing.net/answers/programming/visual-basic-2005-write-to-file/17181.html