Visual Prolog Technical Support
Upgrading Visual Prolog from 5.02 to 5.1 version
Release 5.1 of Visual Prolog is almost 100% compatible with the
previous 5.02 release.
Note, please, that the following packages have been changed in Visual Prolog
5.1 and are not fully backward compatible:
Visual Prolog 5.1 is not fully compatible with some examples
from Visual Prolog 5.02.
HTTP Layer
In order to avoid intersection of domain names in the HTTP Layer
(SOCKBIND\INCLUDE\HTTPLAY) and the Document Handling (DOC_TOOL\Include)
packages, the URI domain of the HTTP Layer Package has been renamed httplay_URI.
This causes incompatibility with user applications, written with the help of the
HTTP Layer, version 5.02, and with the HTTP example.
HTTP Example
The following errors are generated while compiling an HTTP example
(SOCKBIND\EXAMPLES\HTTP) from Visual Prolog 5.02: 100, 209.
We recommend you to use a new version of the example. However, if you
prefer to compile an old version or to upgrade your own application, do
the following:
In the HTTP32.PRO replace the predicate:
form_referer(STRING,URI)
with
form_referer(STRING, HTTPLAY_URI), .
Report Package
The Report package has been changed in order to avoid incompatibility of
the Report and the Own_Draw packages in one module. However, it is not fully
backward compatible with old versions of Logidemo example and user applications,
written with the help of the Report package, version 5.02.
LOGIDEMO Example
If you compile the VIP 5.02 LOGIDEMO example, or a project created by
VIP 5.02 immediately after installation of VIP 5.1, you will get a
number of error messages. We recommend you to use a new version of the
example. However, if you prefer to compile an old Logidemo example or to
upgrade your own application, use the following strategy:
-
Replace the own_member predicate with the mmmember
predicate in the file TOOLS\REPORTS\REPORTS.PRO
-
Add the predicate mmmember in
TOOLS\REPORTS\REPORTS.PRO file
PREDICATES
determ mmmember(OD_ITEMSTATE,OD_STATE)
determ mmmember(OD_ITEMACTION,OD_ACTION)
-
Add mmmember to CLAUSE in
TOOLS\REPORTS\REPORTS.PRO file
CLAUSE
mmmember([X|_],X):-!.
mmmember([_|T],X):-mmmember(T,X).
- In the VDE Project window click "Cursor".
- Create a cursor with the idc_zoomout constant. Browse to
VPI\INCLUDE\REPORT\RES\WIN\zoomout.cur
Examples
- Note, please, that the following examples from Visual Prolog 5.02 are not
fully compatible with Visual Prolog 5.1:
 | OOP\EXAMPLES\SHAPES |
 | VPI\TOOLEXAM\DATECUST |
 | VPI\TOOLEXAM\REPTEST |
 | WINBIND\DEMOS\DEMO5 |
We recommend you to use new versions of these examples, if possible.
- The following example has been changed in the version 5.1 and moved to FOREIGN\EXAMPLES\MSVC/NONGUI
directory:
 | VPI\EXAMPLES\C_PRODLL |
|