Hi to you all,
> One possible abstract design for sumitting the problem could be as
> follows:
>
> OzSearch * SUBMIT(char*STR,int*ARR)
let me be more pragmatic in the proposed DLL use-cases referring to a real
prolog COM-interface in a intuitive example written in VB:
'create an instance of the engine
Set objPrologEngine = CreateObject("Prolog.Engine.1")
'parse a goal in the environment with a named variable
objPrologEngine.ParseProlog ( "go(X)")
'fetch the goal
bResult = objPrologEngine.PrologFetch
'show results (only few datatypes are allowed: String, Int, Float)
If bResult then
MsgBox ("X is " + objPrologEngine.PrologString("X"))
End If
'End session
objPrologEngine.EndProlog
Is the code above too naive for you ?
The point is that it works without worrying about any complex data
conversion.
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.