Search found 1168 matches

by Thomas Linder Puls
15 Mar 2020 13:54
Forum: Visual Prolog
Topic: What is this: ideStorage.DLL in Exe folder
Replies: 1
Views: 3271

Re: What is this: ideStorage.DLL in Exe folder

It is there because you used vip\versionDataFactory

Code: Select all

VersionData = vip\versionDataFactory::get(vip\versionData::interfaceVersion, "main.version")
Now that you don't use that anymore you can remove diverse $(ProDir)\vip\.. packages and $(ProDir)\lib\ideStorage.dll.
by Thomas Linder Puls
12 Mar 2020 16:25
Forum: Visual Prolog
Topic: How to Use Visual Prolog DLL from .Net
Replies: 1
Views: 3282

Re: How to Use Visual Prolog DLL from .Net

The example is among the examples that can be installed from the Commercial Edition of Visual Prolog (only the Commercial Edition can make DLL's). It is in the folder useVipInDotNet . And as says: it is possible. But if your intension is to have the GUI in .net all all the business functionality in ...
by Thomas Linder Puls
5 Mar 2020 17:35
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 4483

Re: Accessing IDE Variables & Version Information

Well, it seems that we have duplicated some code for this. And that we could have provided a more full interface. Anyways, the fileVersion class contains more code for this. But you will have to create your own code for this. The information is in the vs_fixedfileinfo struct (which for some strange ...
by Thomas Linder Puls
5 Mar 2020 9:54
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 4483

Re: Accessing IDE Variables & Version Information

The default about dialogs contains one or more versionControls. Such a versionControl can format information from programs own version resource.

So by looking at that code you will be able to see how to read version (resource) information.
by Thomas Linder Puls
4 Mar 2020 12:37
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 4483

Re: Accessing IDE Variables & Version Information

Last thing first: The file does not have to exist, because the interface is also used to create such files (i.e. using save ). "main.version" was just meant as an informative indication; if you mean some particular file you must of course provide a proper path to that file. From you path I can see t...
by Thomas Linder Puls
3 Mar 2020 17:02
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 4483

Re: Accessing IDE Variables & Version Information

(1) No. We are using an approach similar to yours. (2) Version Information is stored in a version file (typically main.version). The version file can be shared by several projects, and hence the information will become the same in all those programs. The information is in xml format, but you dont re...
by Thomas Linder Puls
19 Feb 2020 16:05
Forum: Visual Prolog
Topic: Bug in SciLexer
Replies: 2
Views: 3578

Re: Bug in SciLexer

Unfortunately, most of these properties cannot be set like that, because the control does not exist at that place. Currently there is no other way to solve that problem than setting the property manually in a show listener: clauses new(Parent) :- formWindow::new(Parent), generatedInitialize(), addSh...
by Thomas Linder Puls
30 Jan 2020 10:32
Forum: Visual Prolog
Topic: Problem with several SQL datatypes
Replies: 2
Views: 3565

Re: Problem with several SQL datatypes

Many ODBC/SQL configurations requires that "large" fields are last in the query. So if you write select large_field, small_field from ... you will get such an error. But if you write select small_field, large_field from ... then you will not get an error. When you write select * from ... you are ask...
by Thomas Linder Puls
27 Jan 2020 15:43
Forum: Visual Prolog
Topic: The control is shift to right on the ToolBar of application
Replies: 5
Views: 4548

Re: The control is shift to right on the ToolBar of application

I have not been able to reproduce the problem.

But the code you state seems harmless, and if it solves the problem then we will add it.
by Thomas Linder Puls
17 Jan 2020 7:25
Forum: Visual Prolog
Topic: Download Visual Prolog 7.1
Replies: 1
Views: 3493

Re: Download Visual Prolog 7.1

We don't provide old versions.

But you can download the latest/current version from: Visual Prolog Downloads.
by Thomas Linder Puls
9 Jan 2020 11:11
Forum: Visual Prolog
Topic: memoryAccessor
Replies: 2
Views: 3967

Re: memoryAccessor

I am not really sure why the original code was that complex; this should do: clauses new() :- isAtomic := toBoolean(pfc\reflection\reflection_native::termRepresentedByValue(typeLibraryOf(@Elem))), SV = if true = isAtomic then sizeOfDomain(@Elem) else sizeOfDomain(pointer) end if, if SV = 1 then get_...
by Thomas Linder Puls
4 Jan 2020 16:22
Forum: Visual Prolog
Topic: Declaring predicates containing elipse
Replies: 2
Views: 3665

Re: Declaring predicates containing elipse

The predicate takes a predicate without arguments (e. g. a runnable) as argument

Code: Select all

predicates     qqq : (core::runnable Action).
by Thomas Linder Puls
2 Jan 2020 7:54
Forum: Visual Prolog
Topic: PIE: How to ask Rules ?
Replies: 1
Views: 3549

Re: PIE: How to ask Rules ?

The tutorials Fundamental Prolog Part 1 & Part 2 describes how to do "traditional" Prolog programming using PIE.
by Thomas Linder Puls
1 Jan 2020 22:57
Forum: Visual Prolog
Topic: Can't compile with data declared as fact.
Replies: 1
Views: 3533

Re: Can't compile with data declared as fact.

Your male fact is nondeterm, and therefore run becomes nondeterm. But run is declared to be a procedure. You can solve the problem using foreach like this: clauses run() :- foreach male(X) do stdio::writef("% is a male \n", X) end foreach. I suggest you work through these lessons .
by Thomas Linder Puls
19 Dec 2019 9:49
Forum: Visual Prolog
Topic: Maximized message window
Replies: 2
Views: 3777

Re: Maximized message window

I think you are asking about: messageForm:setState([wsf_maximized]) To bring it back to normal/restored state you use the wsf_restored flag. You should however notice that maximizing is for all the MDI child windows; either the MDI parent displays the child windows maximized or at their "restored" s...