Search found 1233 matches

by Thomas Linder Puls
2 Aug 2021 21:38
Forum: Visual Prolog
Topic: object expressions
Replies: 2
Views: 16

Re: object expressions

Your code contains both a class and an object expression, which are both declared to be iterators. However only the object expression actually implement the interface. I don't think you intend the class to be an iterator only the object expression. So if you rename the class and implementation and a...
by Thomas Linder Puls
29 Jul 2021 7:35
Forum: Visual Prolog
Topic: Do we have a VIP dll or an activex component?
Replies: 2
Views: 78

Re: Do we have a VIP dll or an activex component?

I am afraid not.

All data that can change owner will have to be marshaled to/from COM memory and that will make many things both complicated and inefficient.

Which things would you like to call (as example)?
by Thomas Linder Puls
26 Jul 2021 10:16
Forum: Visual Prolog
Topic: installing 1002 error
Replies: 1
Views: 68

Re: installing 1002 error

There is no change in that respect, you can have Vip 5, 7,.. and 10 as like, but you cannot have two instances of Vip 9 or two instances of Vip10. Actually Visual Prolog itself doesn't mind you can have as many as you like, but when making installers you will have to decide which is the same and sho...
by Thomas Linder Puls
19 Jul 2021 8:22
Forum: Visual Prolog
Topic: webView2Demo
Replies: 5
Views: 9364

Re: webView2Demo

I am not sure if I understand the problem, but maybe this will help. To show your web form (from your taskWindow ), you will have to make a call like this: WebForm = web::display(This) In the default code a messageForm is displayed in the show-listener, and the aboutdialog is displayed in a menu han...
by Thomas Linder Puls
16 Jul 2021 10:47
Forum: Visual Prolog
Topic: webView2Demo
Replies: 5
Views: 9364

Re: webView2Demo

In an SDI application (with a mainForm ) the "main" code looks like this: clauses run() :- _ = mainForm::display(gui::getScreenWindow()), messageLoop::run(). In an MDI application (with a taskWindow ) then main code looks like this: clauses run() :- TaskWindow = taskWindow::new(), TaskWind...
by Thomas Linder Puls
9 Jul 2021 8:12
Forum: Visual Prolog
Topic: Unifying domains?
Replies: 4
Views: 230

Re: Unifying domains?

Yes, the answer is "No". I took a while to write this mail, so the descriptions matches your first setup (but I still think it is relevant). I fear your are heading in a bad direction overall. The problem is that I believe that a model (being friendly or enemy ) has a lot of other properti...
by Thomas Linder Puls
2 Jul 2021 13:29
Forum: Visual Prolog
Topic: library is corrupt when calling predicates from C/C++ on both 64bit platforms
Replies: 1
Views: 187

Re: library is corrupt when calling predicates from C/C++ on both 64bit platforms

This is a know issue, which we are examining, but don't yet have a solution for. You can however load the DLL dynamically using LoadLibrary in C++, but the details about this must be found in a C++ documentation. Notice that your C++ declaration must have __stdcall modifier (it will not solve this p...
by Thomas Linder Puls
1 Jul 2021 8:26
Forum: Visual Prolog
Topic: Presenters, Symbols, Grammars (WAS: Variables Pending in Debugger Window)
Replies: 3
Views: 195

Re: Presenters, Symbols, Grammars (WAS: Variables Pending in Debugger Window)

I agree that there is nothing wrong with your presenters. And as said I am not sure how much this influences the debugger. This kind of problem has a higher probability to happen in a multithreaded program. I appreciate that speed is your main concern. And I believe that using a canonical object rep...
by Thomas Linder Puls
30 Jun 2021 9:48
Forum: Visual Prolog
Topic: Com Creation
Replies: 1
Views: 160

Re: Com Creation

Given that the object you "really" want is an iDVDoc object this is the safest code for your task:

Code: Select all

        IDisp = App:getDVDoc(Idx),         IDVDoc = comInterface::getFromUnknown(iDVDoc::iid, IDisp),         IDisp:release(),
by Thomas Linder Puls
30 Jun 2021 9:16
Forum: Visual Prolog
Topic: Bit Operations
Replies: 1
Views: 198

Re: Bit Operations

Thank you. We will look at it. The calculation in 64bit is clearly wrong.
by Thomas Linder Puls
30 Jun 2021 8:38
Forum: Visual Prolog
Topic: Presenters, Symbols, Grammars (WAS: Variables Pending in Debugger Window)
Replies: 3
Views: 195

Re: Presenters, Symbols, Grammars (WAS: Variables Pending in Debugger Window)

Very interesting. I am not sure how much of this that has direct influence on the debugger. However we strongly recommend that presenters doesn't have side effects (like asserting facts and the like). The problem is that presenters are called during debugging in any number of times in any order and ...
by Thomas Linder Puls
29 Jun 2021 14:44
Forum: Visual Prolog
Topic: Custom Control Issue with workaround -- Build 1000
Replies: 1
Views: 161

Re: Custom Control Issue with workaround -- Build 1000

What is VPC? Do you mean VIP? (rhetorical questions :-)). Thank you for the feedback. The problem arises because the customControl sets the Container after calling generatedInitialize . clauses new(Parent) :- new(), % call to generatedInitialize setContainer(Parent). It will work, if you remove the ...
by Thomas Linder Puls
29 Jun 2021 13:41
Forum: Visual Prolog
Topic: Variables Pending in Debugger Window
Replies: 7
Views: 268

Re: Variables Pending in Debugger Window

Thank you, we will look at it.
by Thomas Linder Puls
29 Jun 2021 8:17
Forum: Visual Prolog
Topic: Variables Pending in Debugger Window
Replies: 7
Views: 268

Re: Variables Pending in Debugger Window

Hi, Martin. It has to do with a locked critical section. It is an unfortunate possibility after we have switched to "presenters". The debugger needs access to this critical section, but it can be locked by your program (which is unfortunately also braked). We use certain "tricks"...