Search found 1216 matches

by Thomas Linder Puls
17 Jun 2021 11:27
Forum: Visual Prolog
Topic: Cannot use Windows Explorer to ZIP a VIP project using "Object Expressions"
Replies: 2
Views: 52

Re: Cannot use Windows Explorer to ZIP a VIP project using "Object Expressions"

Strange my Windows does not have any problems with such file names.

How do you zip the files (what actions)?

Which Windows version are you using?
by Thomas Linder Puls
15 Jun 2021 8:22
Forum: Visual Prolog
Topic: Prodoc error
Replies: 1
Views: 7106

Re: Prodoc error

Let me first warn you: prodoc is a very old program with many flaws, we hope to find time to get rid of it. To solve the problem you see you must register the MIL HTML parser which is also present in the $(ProDir)\bin directory. It is a .NET COM component. To register it you must start a command pro...
by Thomas Linder Puls
14 Jun 2021 11:32
Forum: Visual Prolog
Topic: Problem with gdiplus fontCollection:families property (with workaround code)
Replies: 1
Views: 615

Re: Problem with gdiplus fontCollection:families property (with workaround code)

You are right, there is a problem in fontCollection::families . The code lacks a call to memory::getPointer clauses families() = Families :- checkStatus(gdiplus_native::gdipGetFontCollectionFamilyCount(nativeFontCollection, Count)), Array = memory::allocHeap(Count * sizeOfDomain(pointer), memory::co...
by Thomas Linder Puls
10 Jun 2021 14:17
Forum: Visual Prolog
Topic: Need example of C function calling VIP DLL
Replies: 2
Views: 91

Re: Need example of C function calling VIP DLL

You will use a vip-dll in the same way as you use other dll's. Exactly how that is depends on you C++ system, and is really a question for some C++ forum. But it involves declaring C++ pendants to the vip predicates and linking with the lib (or loading the DLL dynamically). The predicate from the ex...
by Thomas Linder Puls
7 Jun 2021 8:31
Forum: Visual Prolog
Topic: incorrect dll
Replies: 1
Views: 168

Re: incorrect dll

This is a bug the vipVpi.dll.

It will be resolved in the next patch, and unfortunately, I don't have a workaround for you.
by Thomas Linder Puls
3 Jun 2021 8:49
Forum: Visual Prolog
Topic: Domains across classes?
Replies: 3
Views: 215

Re: Domains across classes?

When referencing your domain location and the functors a20003, ... in another scope you can write, main::location and main::a20003, ...

But if you open main in a scope, then you can skip the main:: qualifications within that scope.
by Thomas Linder Puls
31 May 2021 8:32
Forum: Visual Prolog
Topic: Parameter Passing between Prolog DLL and C Function
Replies: 1
Views: 203

Re: Parameter Passing between Prolog DLL and C Function

I suggest you read Foreign Language Code.

The answer to your second question is: no.
by Thomas Linder Puls
31 May 2021 8:28
Forum: Visual Prolog
Topic: An Object 'pointer' - how to store references to objects
Replies: 1
Views: 141

Re: An Object 'pointer' - how to store references to objects

Here are three ways to store a "set/list" of person objects in an object: implement myObject facts person_fact : (person Person) nondeterm. % use assert(person_fact(P)) to insert one more person. facts personList : person* := []. % set a new list using personList := PL facts personSet : se...
by Thomas Linder Puls
28 May 2021 10:54
Forum: Visual Prolog
Topic: Calling convention in C/C++ DLL
Replies: 3
Views: 179

Calling convention in C/C++ DLL

It is always better to have one subject per mail. But now that the other part is "closed" I think it is fine. C/C++ programmers can use many calling conventions (just like we can in Visual Prolog). You will have to use the convention that matches what the C/C++ programmer used. Often they ...
by Thomas Linder Puls
24 May 2021 22:07
Forum: Visual Prolog
Topic: Call dialog from predicate?
Replies: 2
Views: 298

Re: Call dialog from predicate?

You can show a dialog from any part of your code. D = myDialog::display(applicationWindow::get(), .......), But usually it is a bad idea to "block" the program and ask for input (using a modal dialog). Have you read Dialogs and Forms and looked at Dialogs and Forms: Modeless dialogs exampl...
by Thomas Linder Puls
21 May 2021 13:49
Forum: Visual Prolog
Topic: IDE: intellisense autocomplete PFC classes
Replies: 1
Views: 271

Re: IDE: intellisense autocomplete PFC classes

When a package is added to the project it is available to use. But to use it from some other package there must also be an include directive (or a chain of such) that makes the package visible. We have decided that the package should only be suggested if it is visible. So initially classes and inter...
by Thomas Linder Puls
21 May 2021 13:33
Forum: Visual Prolog
Topic: VP10 - Compiler Core Dump
Replies: 1
Views: 225

Re: VP10 - Compiler Core Dump

Thank you, we will look at it. We will come back to you if we need additional information.
by Thomas Linder Puls
17 May 2021 11:07
Forum: Visual Prolog
Topic: timerSet Problem n VIP10CE
Replies: 2
Views: 251

Re: timerSet Problem n VIP10CE

That is clearly a bug, which we will fix. Meanwhile you can enclose the call in a show listener:

Code: Select all

        addShowListener({ :- _ = timerSet(20) }),
by Thomas Linder Puls
10 May 2021 11:34
Forum: Visual Prolog
Topic: Using generated LALRGen parser as Scilexer
Replies: 2
Views: 340

Re: Using generated LALRGen parser as Scilexer

A genuine (C++) lexer for sciLexer is capable of token coloring fragments of text. Briefly it works in the following way. The lexer is a state machine each character in the editor transfers from one state to another. The state that a character leads to is saved with the character. Each state is also...
by Thomas Linder Puls
5 May 2021 16:57
Forum: Visual Prolog
Topic: Upgrade Vip7
Replies: 1
Views: 15228

Re: Upgrade Vip7

Write a mail to support@visual-prolog.com then we will look at it.