Search found 69 matches

by Chan Bok
26 Nov 2012 10:18
Forum: Visual Prolog Tips & Samples
Topic: Tiny Encryption Algorithm (TEA)
Replies: 0
Views: 5236

Tiny Encryption Algorithm (TEA)

The c codes for TEA (from Wikipedia) are as follows: void encrypt (uint32_t* v, uint32_t* k) { uint32_t v0=v[0], v1=v[1], sum=0, i; /* set up */ uint32_t delta=0x9e3779b9; /* a key schedule constant */ uint32_t k0=k[0], k1=k[1], k2=k[2], k3=k[3]; /* cache key */ for (i=0; i < 32; i++) { /* basic cyc...
by Chan Bok
16 Sep 2012 23:54
Forum: Visual Prolog
Topic: High praise for Visual Prolog (Forwarded message)
Replies: 1
Views: 1055

High praise for Visual Prolog (Forwarded message)

-------- Original Message -------- Subject: Re: [axon-users] Re: Announcing Axon2013 R2.00 (Final Version) Date: Mon, 17 Sep 2012 07:35:51 +0800 From: Chan Bok <axon2000@singnet.com.sg> Reply-To: axon-users@yahoogroups.com To: axon-users@yahoogroups.com Dear iquine, Thanks very much for your upgrade...
by Chan Bok
29 Jan 2012 11:29
Forum: Visual Prolog
Topic: vpiEditor undo problem
Replies: 1
Views: 1092

vpiEditor undo problem

vpiEditor::createHyper() cannot undo upon pasting text beyond the right edge of the window. To re-create the problem: 1. Open the project in the Editor example. 2. Change vpiEditor::create() to vpiEditor::createHyper() with wrap=1 3. Run the program and paste a line of text that exceeds the right ma...
by Chan Bok
22 Dec 2011 12:23
Forum: Visual Prolog
Topic: Visit Order in VIP7302
Replies: 2
Views: 1596

Dear Thomas,

Thanks for the explanation.
by Chan Bok
22 Dec 2011 7:38
Forum: Visual Prolog
Topic: Visit Order in VIP7302
Replies: 2
Views: 1596

Visit Order in VIP7302

Hello,

I notice that in VIP7302 the visit order (from the Resource menu) now applies to a control even if the control is not a tab stop.

Regards,
by Chan Bok
22 May 2011 0:13
Forum: Visual Prolog
Topic: GDI+ and drawing pie charts
Replies: 16
Views: 6475

Dear Kari, I used these for saving a file. Hope it helps. gpPictSave(Pict, FileName, CLSID):- gpPictToImage(Pict, Image), _ = gdiplus_native::gdipSaveImageToFile(Image, FileName, CLSID, null), gdiplus_api::gdipDisposeImage(Image). gpPictToImage(Pict, Image):- PictBin = vpi::pictToBin(Pict), MemSize ...
by Chan Bok
31 Mar 2011 1:28
Forum: Visual Prolog
Topic: screen capture vip7.3
Replies: 3
Views: 1471

Forgot to list the 6th which I don't know what is it about:

Code: Select all

constants guidQuality:nativeGuid=nativeGuid(0x1D5BE4B5,0xFA4A,0x452D,0x9C,0xDD,0x5D,0xB3,0x51,0x05,0xE7,0xEB). % Jpeg Quality
by Chan Bok
31 Mar 2011 1:22
Forum: Visual Prolog
Topic: screen capture vip7.3
Replies: 3
Views: 1471

This is what I know about encoders: 1. GDIP supply 6 standard encoders identified by their CLISD. 2. These CLISDs are not found in the Windows Registry (i.e. hardcoded). 3. It happens that Encoder = Decoder for the 6 standard encoders. 4. Jpeg and Png CLISDs were found in MSDN under topic ImageCodec...
by Chan Bok
14 Dec 2010 21:26
Forum: Visual Prolog
Topic: Some of the issues on the prolog
Replies: 3
Views: 1367

This can be done using Visual Prolog without any C code.
See "HTTP Demo" in:

http://discuss.visual-prolog.com/viewtopic.php?t=8406
by Chan Bok
9 Sep 2010 8:31
Forum: Visual Prolog
Topic: Editor Example - memory usage increases
Replies: 1
Views: 913

Editor Example - memory usage increases

I tested the VIP7.3 "Editor" example on Win XP.
By repeatedly opening and closing the editor window,
and observing the Windows Task Manager,
the memory usage increased by 60K each time.
Not sure if this is a memory leak problem.

Chan Bok
Axon Research
by Chan Bok
8 Sep 2010 9:00
Forum: Visual Prolog
Topic: Application installation - user licensing
Replies: 4
Views: 1379

I had a network license scheme some 10 to 15 years back, but no longer. In those days a network always means a LAN network, not an internet network. You can identify a file on the LAN server by its drive name (say s:\server\myfile.txt) so it was a simple matter of reading and writing to a server fil...
by Chan Bok
14 Aug 2010 7:52
Forum: Visual Prolog
Topic: Sporadic errors 205 and 206 with vip 7.2.02
Replies: 10
Views: 3228

Thanks for the helpful suggestions from Gildas and Thomas.

I am indeed using double buffering extensively.

I will spend time looking into this problem.

Best Regards,
by Chan Bok
13 Aug 2010 18:51
Forum: Visual Prolog
Topic: Sporadic errors 205 and 206 with vip 7.2.02
Replies: 10
Views: 3228

Another crash report just came in (for VIP7.2) ========================= >Hi Chan, > >I created a file in Axon. >Most images are attached, a few are embedded. >After opening the file, I can do about five to ten basic operations with my mouse (like left/ right >clicking objects) before Axon crashes. ...
by Chan Bok
13 Aug 2010 17:04
Forum: Visual Prolog
Topic: Sporadic errors 205 and 206 with vip 7.2.02
Replies: 10
Views: 3228

I had a similar problem (see details below) recently with VIP7.2. I am also unable to reproduce the problem at my end. Best Regards, ================================== >> Dear Chan, >> >> after typing continuously into the Freewriter, I suddenly was surprised by the following program error: >> >> ==...
by Chan Bok
19 Jul 2010 2:13
Forum: Visual Prolog
Topic: onTimer event upon migrating to VIP73
Replies: 8
Views: 2087

...which implies that timer listener should not be added during new(), but during onShow().