A Guide to Artificial Intelligence with Visual Prolog. Addendum for Version 7.4

From wiki.visual-prolog.com

Revision as of 15:08, 28 November 2012 by Thomas Linder Puls (talk | contribs) (initial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Written by Randall Scott

The Book A Guide to Artificial Intelligence with Visual Prolog was written using version 7.2 and tested very rigorously against both the Personal Edition as well as the Commercial Edition. An Addendum on the Visual Prolog Web Site dedicated to this book, was provided to explain how this Book was still valid and quite applicable to version 7.3, with caveats for issues related to version change side-effects that would be helpful.

As it turns out, the Book is still valid with version 7.4, and the same simple Instruction provided for the version 7.3 Addendum can also be used for version 7.4 with a few different version change side effects that will be explained as follows:

  1. Again, if you hand typed the GAMegaLotto Program in its entirety as instructed by the Book, you should experience no problems what so ever.
  2. On the other hand, if you want to copy the source code for both programs, GAMegaLotto and LottoV2, then a few new things will be experienced. Use the same simple instructions for version 7.3 Addendum for creating new directory paths for the GAMegaLotto and LottoV2 projects, for use with version 7.4; which includes copying and deleting the EXE and OBJ files as instructed in the Addendum for version 7.3.
  3. Starting with GAMegaLotto, open the Project ‘gamegalotto.prj6’ in version 7.4 and execute the Build-All option. This is where the new side-effects for version 7.4 will bear out, in that there are some items that will need to be removed when prompted by pop-up Dialog Boxes – just ‘Remove’ them. Your paths may be different then mine, but the items should be the same. They should be:
    1. C:\Program Files\Visual Prolog 7.4 PE\pfc\vpi\vip7vpi.lib
      Does not exist – Remove Yes/No
      Yes
    2. C:\Program Files\Visual Prolog 7.4 PE\pfc\regExp\VIP7regExp2.lib
      Does not exist – Remove Yes/No
      Yes
    3. C:\Program Files\Visual Prolog 7.4 PE\pfc\vpi\vpiEditor\vip7edit.lib
      Does not exist – Remove Yes/No
      Yes
    4. C:\Program Files\Visual Prolog 7.4 PE\pfc\redBlackTree\redBlackTree.pack
      Does not exist – Remove Yes/No
      Yes
  4. As the Program Builds (you should watch the activity in the message window), you’ll then be questioned through a Dialog Question Box for items that need to be Added. Just click the ‘Add All’ option. While watching the Message window, you should see a couple of blocks of modules added:
    These modules:
    $(ProDir)lib\boostRegex.lib
    $(ProDir)pfc\regEx\regEx.pack
    $(ProDir)pfc\varM\varM.pack
    $(ProDir)pfc\gui\clipboard\clipboard.pack
    $(ProDir)pfc\windowsApi\Shell_api\Shell_api.pack
    $(ProDir)pfc\reflection\reflection.pack
    $(ProDir)pfc\collection\algebraic\redBlackTree\redBlackTree.pack
    $(ProDir)pfc\windowsApi\sciLexer_api\sciLexer_api.pack
    $(ProDir)pfc\gui\controls\sciLexer\sciLexerSupport\sciLexerSupport.pack
    $(ProDir)pfc\gui\controls\sciLexer\sciLexer.pack
    $(ProDir)pfc\windowsApi\gdiplus_api\gdiplus_api.pack
    $(ProDir)pfc\windowsApi\com_api\iStream_api\iStream_api.pack
    $(ProDir)lib\VIP7regExp2.lib
    $(ProDir)lib\vip7edit.lib
    $(ProDir)lib\vip7vpi.lib
    $(ProDir)pfc\gui\toolTip\toolTip.pack
    $(ProDir)pfc\gui\ImageList\ImageList.pack
    $(ProDir)pfc\gui\gdiplus\gdiplus.pack
    $(ProDir)pfc\gui\commands\command\Command.pack
    $(ProDir)pfc\event\event.pack
    have been added to the project.
    These modules:
    $(ProDir)lib\SciLexer.lib
    $(ProDir)pfc\collection\M\queueM_fact\queueM_fact.pack
    $(ProDir)pfc\gui\toolTip\tooltipSupport\tooltipSupport.pack
    $(ProDir)pfc\windowsApi\ImageList_api\ImageList_api.pack
    $(ProDir)pfc\windowsApi\uxTheme_api\uxTheme_api.pack
    $(ProDir)pfc\gui\commonDialogs\commonDialogs.pack
    have been added to the project.
  5. You will get a few Warnings, but the Program will execute just like the original and as it is suppose to.
  6. Then with LottoV2, open the Project ‘LottoV2.prj6’ in version 7.4 and execute the Build-All option. You should have the same items to ‘Remove’ and get the same effects from the ‘Add All’ option; and, the Program will execute as expected. You will get one Warning for both Programs that should be quite obvious:
    Type Description Filename
    w304 Deprecated entity 'vpiEditor': Migrate to sciLexer HelpWindow.pro

Note: These procedures worked fine with Microsoft XP; however, while performing it with Microsoft Vista, I received several errors during the first Build-All session, but forcing a second Build-All cleared them all up.