Search found 43 matches

by Kari Rastas
30 Apr 2016 17:26
Forum: Visual Prolog
Topic: Uniform cost search
Replies: 3
Views: 3692

Well it took me 5 seconds to find information about your problem and even hints for the needed prolog code. Write to Google "uniform cost search prolog" and read a couple of the links. Then ...
by Kari Rastas
24 Apr 2016 15:20
Forum: Visual Prolog
Topic: What is the simplest way of saving pictures in small files?
Replies: 3
Views: 4476

1) Why do you need
Quote:
language stdcall

To save time I picked the code from one of my DLL's. Naturally "outside" a dll there is no need for the stdcall part.
by Kari Rastas
24 Apr 2016 9:01
Forum: Visual Prolog
Topic: What is the simplest way of saving pictures in small files?
Replies: 3
Views: 4476

I have used these. predicates savePictureToFile : (vpiDomains::picture, string FileName, string EncoderType) procedure (i,i,i) language stdcall as "savePictureToFile". % %@short Saves a picture in a file with the wanted picture format % %@detail Saves a picture in a file with the wanted picture form...
by Kari Rastas
14 Dec 2014 9:04
Forum: Visual Prolog
Topic: Example How to write the predicate directory::browseforfolder
Replies: 2
Views: 1469

Code: Select all

directory::browseForFolder(nullWindow,"Search Folders","c:\\",false()) = ChosenFolder,         stdIO :: write(ChosenFolder),
by Kari Rastas
8 Dec 2014 15:54
Forum: Visual Prolog
Topic: Check for updates gives: Unable to determine latest version"
Replies: 3
Views: 1613

When I try this Check for updates I get the error message "Unable to determine latest version".
:?:
by Kari Rastas
6 Aug 2014 7:57
Forum: Visual Prolog
Topic: 7.5 pdf documentation
Replies: 1
Views: 1372

7.5 pdf documentation

by Kari Rastas
24 Apr 2014 7:42
Forum: Visual Prolog
Topic: Video
Replies: 7
Views: 1840

Check VideoLan VLC activeX (open source media player). It should make able to show videos in a VIP program.
by Kari Rastas
19 Apr 2014 12:16
Forum: Visual Prolog
Topic: 64 bit
Replies: 5
Views: 2464

With 64-bit exe the used dll's must be 64-bit versions. I have not tried with projects using ODBC. I only tried with some own VIP projects. I have a pictures generating DLL, which I use in several projects. When I first tested a 64-project it had 32-bit version picture DLL linked to it. Result was t...
by Kari Rastas
16 Apr 2014 7:58
Forum: Visual Prolog
Topic: 64 bit
Replies: 5
Views: 2464

One of the needed DLL's being loaded when the program starts is a 32 bit version (probable the OBDC part in your case). That causes this 0xc000007b error.
by Kari Rastas
2 Apr 2014 23:10
Forum: Visual Prolog
Topic: Unreachable or excessive code?
Replies: 11
Views: 2735

I tried already before posting this question different order with clauses. The unreachable code warning comes always to those quarter clauses which are "outside" the current string constant. So if the constant value is "Q3" the warning comes with clauses where is used "Q1", "Q2" and "Q4". Etc. I als...
by Kari Rastas
2 Apr 2014 17:11
Forum: Visual Prolog
Topic: Unreachable or excessive code?
Replies: 11
Views: 2735

Thanks Ben it works. However a bit "cryptic" solution from the point of simplicity and pure logic. :shock: I have monthly data (Finnish Customs data, updated every month), which I then process to quarter and year levels. See http://rastka.com/importexport1.html I count the quarter values for groups ...
by Kari Rastas
2 Apr 2014 16:09
Forum: Visual Prolog
Topic: Unreachable or excessive code?
Replies: 11
Views: 2735

Form the point of the clauses logic correctness the value of what is written above in the constant segment should not have any "effect" to compiling the classes. This constants are changed during time, for example lastKnownQuarter every 3 months. The code of the predicate not. The logic of clauses i...
by Kari Rastas
2 Apr 2014 11:46
Forum: Visual Prolog
Topic: Unreachable or excessive code?
Replies: 11
Views: 2735

Unreachable or excessive code?

I have a problem with code in counting quarter figures in a timeseries data. I need to count the data between the years 2002 to recent "times". Let's imagine the last known quarter of 2014 would be quarter number 2. So then I could count Q1 and Q2 of 2014 and checkQuarter(2014,"Q3") and checkQuarter...
by Kari Rastas
27 Feb 2014 10:40
Forum: Visual Prolog
Topic: Missing vip7Edit.dll
Replies: 1
Views: 952

Problem solved. "Somehow" this vipEditor packet was included in this large project even vipEditor has never been used in this project as part of the code. Removing the vipEditor from the project helped.
by Kari Rastas
26 Feb 2014 22:03
Forum: Visual Prolog
Topic: Missing vip7Edit.dll
Replies: 1
Views: 952

Missing vip7Edit.dll

I made my first own 64bit program of a relative large project. No problems in that. However the "result" doesn't want to start. It complains of the missing vip7Edit.dll. The vip7Edit.dll seems to exists only as the 32-bit version.