Search found 26 matches

by kingchris
3 Jul 2020 14:44
Forum: Visual Prolog
Topic: Replace nulls in ::string
Replies: 6
Views: 1960

Re: Replace nulls in ::string

Will do
by kingchris
3 Jul 2020 5:10
Forum: Visual Prolog
Topic: Replace nulls in ::string
Replies: 6
Views: 1960

Re: Replace nulls in ::string

Thank you Martin Meyer . I will use it. I had a lot of trouble converting the string to binary via direct functions or binary_outputstreams, as any conversion from strings would not read after the first null, but seeing how your method works will assist in the old learning curve. Again. Much appreci...
by kingchris
2 Jul 2020 10:27
Forum: Visual Prolog
Topic: Replace nulls in ::string
Replies: 6
Views: 1960

Replace nulls in ::string

I am writing a system volume crawler. One of the Win32 functions is Vols = string::create(256), Count = fileSystem_native::getLogicalDriveStrings(256, Vols), The 256 buffer space is overkill for now I know. The result is not a string but a series of strings separated by a null then the whole string...
by kingchris
8 Aug 2017 5:54
Forum: Visual Prolog
Topic: Giant constant numbers.
Replies: 3
Views: 2228

Thanks gentlemen for your assistance.

Much appreciated
by kingchris
7 Aug 2017 15:26
Forum: Visual Prolog
Topic: Giant constant numbers.
Replies: 3
Views: 2228

Giant constant numbers.

If I am doing some odd maths how does one get large numbers into integer64 variables and constants. There is a unsigned64:value function I think that takes two parameters. One of my constants is 80 characters for I might have to call a 128 bit library. In C and C++ one always added a L to the end of...
by kingchris
10 Jan 2016 13:56
Forum: Visual Prolog
Topic: DYNAMIC unification is possible Sort Of
Replies: 0
Views: 5290

DYNAMIC unification is possible Sort Of

No question here just something I found useful. I asked a question a while back Is DYNAMIC unification possible! During some heavy prolog writing recently I have found the following works for me. predicates unification:(integer) procedure. unification_string:(string) procedure. clauses unification_s...
by kingchris
29 Dec 2015 18:44
Forum: Visual Prolog
Topic: Domains and Facts How to
Replies: 0
Views: 5041

Domains and Facts How to

I believe that I was asleep during the Domains and Facts lecture so here is a simple question. class bt_class : bt_class open core predicates classInfo : core::classInfo. % @short Class information predicate. % @detail This predicate represents information predicate of this class. % @end domains par...
by kingchris
27 Dec 2015 16:29
Forum: Visual Prolog
Topic: Domains, Facts, Properties, Classes sharing confusion ?
Replies: 2
Views: 3759

Thanks. I will look at making a facts only class.

I have used the chainDB and Btree library from as way back as the VIP 5.2 days so I am happy I know what I am doing.

Because of my projects high volume data, Btree's are a little faster. :lol:
by kingchris
27 Dec 2015 6:27
Forum: Visual Prolog
Topic: Domains, Facts, Properties, Classes sharing confusion ?
Replies: 2
Views: 3759

Domains, Facts, Properties, Classes sharing confusion ?

I currently have a working class called calcWindow that uses a few facts to hold info consulted from a physical fact file. To try and improved the speed of this program I now wish to consult the facts then move these facts into a chainDB with a btree index. The chainDB and btIndex stuff I know how t...
by kingchris
26 Dec 2015 14:05
Forum: Visual Prolog
Topic: stdio::write && console::write for GUI program
Replies: 1
Views: 3342

Cancel request.

Thanks
by kingchris
26 Dec 2015 7:41
Forum: Visual Prolog
Topic: stdio::write && console::write for GUI program
Replies: 1
Views: 3342

stdio::write && console::write for GUI program

Where in the PFC code should I look to find where the stdio and or console is re-directed to the Messages window. I am using an old 7.1 commercial version and can't seem to get write or writef to work to Message window in a GUI program. Do I have to do some init like the old console::init in a conso...
by kingchris
21 Dec 2015 17:45
Forum: Visual Prolog
Topic: Red Cuts and Green Cuts
Replies: 2
Views: 3995

Thanks for the code suggestions. I will try them out.

And yes the splitting will never be perfect but we must start somewhere and then refine it as we go along.
by kingchris
17 Dec 2015 5:21
Forum: Visual Prolog
Topic: Red Cuts and Green Cuts
Replies: 2
Views: 3995

Red Cuts and Green Cuts

implement main open core constants className = "main". classVersion = "". clauses classInfo(className, classVersion). class facts-countries %ISOen_name,continent,midlatitude,midlongitude,maxlatitude,minlatitude,maxlongitude,minlongitude country:(string,string, real, real, real, real, real, real). c...
by kingchris
15 Dec 2015 5:43
Forum: Visual Prolog
Topic: MPI (Message Passing Interface) with PDC Prolog
Replies: 0
Views: 5025

MPI (Message Passing Interface) with PDC Prolog

Greetings and hope you all enjoy the forth coming festive season and release of the the next Star Wars move. Lets hope Disney does not muck it up. :D To avoid re-inventing the wheel etc. Has anyone started or got something small to work where by two or more copies of the same PDC Prolog program have...
by kingchris
14 Dec 2015 19:56
Forum: Visual Prolog
Topic: OnPaint race condition
Replies: 4
Views: 4544

Thanks. I will run the program under different versions of windows to see if its related to the platform

Cheers