Search found 814 matches

by Tonton Luc
29 Mar 2016 13:58
Forum: Visual Prolog
Topic: AES encryption
Replies: 3
Views: 3510

AES encryption

Hi, Is it possible to make this type of encryption using VP 7.3 : Algorithme : AES Mode : CBC Padding : PKCS5Padding Bloc size : 128 bits Does this following is an AES scrypting ? implement crypt open core constants className = "crypt/crypt". classVersion = "". class facts v0_ : unsigned := 0. v1_ :...
by Tonton Luc
10 Feb 2016 9:23
Forum: Visual Prolog
Topic: About Preventing two instances of a program to run simultaneously
Replies: 2
Views: 2521

Hi Ben,

Exactly what I need.
Your code works fine.

Thanks for your help. :wink:
by Tonton Luc
9 Feb 2016 13:29
Forum: Visual Prolog
Topic: About Preventing two instances of a program to run simultaneously
Replies: 2
Views: 2521

About Preventing two instances of a program to run simultaneously

Hi, Using the code from this post : http://discuss.visual-prolog.com/viewtopic.php?t=6596&start=0&postdays=0&postorder=asc&highlight=mutex , the following message is displaying (when a second instance of my application is started tu run). Question : is it possible to replace this message with my own...
by Tonton Luc
3 Feb 2016 14:14
Forum: Visual Prolog
Topic: Time conversion
Replies: 7
Views: 3478

Hi,

Works fine too on my machine.
I've make a mistake about the Result in my previous post. Sorry ! :roll:

Thanks.
by Tonton Luc
3 Feb 2016 12:13
Forum: Visual Prolog
Topic: Time conversion
Replies: 7
Views: 3478

Ok thanks. Works fine. And from this string "28-12-2016-05:56PM", how to recover "28-12-2016-17:56" ? This following code works not fine : T = time::newFromGMT(0), amPm:setFromString(T, "28-12-2016-05:56PM", "dd-MM-yyyy-hh:mmtt"), because the result = " 1 - 02 -2016-1 6 :56". :?:
by Tonton Luc
3 Feb 2016 0:16
Forum: Visual Prolog
Topic: Time conversion
Replies: 7
Views: 3478

Re: Time conversion

Hi, Is it possible to convert "05:56PM" to "17:56" with VP 7.2 ? ...or to recover "17:56" from "05:56PM" ? I've tried this following code without success : GMT = gmtTime::new(), TF = timeFormatter::new(), TF:setFromString(GMT,"05:56PM","hh:mmtt"), ======================================== Dump: 2016/...
by Tonton Luc
2 Feb 2016 18:37
Forum: Visual Prolog
Topic: Time conversion
Replies: 7
Views: 3478

Time conversion

Hi,

Is it possible to convert "05:56PM" to "17:56" with VP 7.2 ?
by Tonton Luc
5 Dec 2015 20:34
Forum: Visual Prolog
Topic: gui_native and extractIcon
Replies: 0
Views: 3096

gui_native and extractIcon

Hi,

How to save the icon in an *.ico file after using this code ?

Code: Select all

HIcon = gui_native::extractIcon(mainExe::getCurrentHinstance(),"c:\\My_application.exe",0),
by Tonton Luc
13 Nov 2015 8:57
Forum: Visual Prolog
Topic: VP 7 VDE specification
Replies: 1
Views: 3045

VP 7 VDE specification

Hi, If I add a constant in my project like : constants my_const = "_zzzz". ...is it possible to add dynamically the contain of my_const in the name of the project application each time I compile my project ? For example, if the name of my project = "applic_1.prj6", for the moment, each time I compil...
by Tonton Luc
22 Oct 2015 15:22
Forum: Visual Prolog
Topic: How to recover Capslock on or off ? [resolved]
Replies: 1
Views: 3010

I've found :

Code: Select all

gui_native::getKeyState(gui_native::vk_Capital)
:oops:
You can delete this post (as you want).
by Tonton Luc
22 Oct 2015 15:11
Forum: Visual Prolog
Topic: How to recover Capslock on or off ? [resolved]
Replies: 1
Views: 3010

How to recover Capslock on or off ? [resolved]

Hi,
how to recover if Capslock is on or off ?

In ..pfc\windowsApi\console_api\console_native.cl, I see a constant named "capslock_on", but I don't understand how to use it...
Many thanks for your help.
by Tonton Luc
15 Oct 2015 15:01
Forum: Visual Prolog
Topic: vPcURL encoded an URL
Replies: 8
Views: 5326

Hi,

I use this one :

Code: Select all

 
by Tonton Luc
14 Oct 2015 13:32
Forum: Visual Prolog
Topic: vPcURL encoded an URL
Replies: 8
Views: 5326

Hi Jan, curl_easy_escape convert ALL special caracters like "-","_","/",".",etc... too, but it's not my goal. Before to call : C:curl_easy_setopt(vPcURLconst::cURLOPT_URL, vPcURL::s(URL)), I need to convert only some special caracters like in this URL : https://www.bmw.fr/dam/brandBM/marketFR/countr...
by Tonton Luc
8 Oct 2015 15:14
Forum: Visual Prolog
Topic: TaskWindow and mdiProperty
Replies: 2
Views: 4063

Hi,

Any solution to solve this problem ?
by Tonton Luc
5 Oct 2015 14:48
Forum: Visual Prolog
Topic: TaskWindow and mdiProperty
Replies: 2
Views: 4063

TaskWindow and mdiProperty

Hi, Is it normal (with VP 7.3) that I need to turn mdiProperty constant to true when I need to write some text in the status toolbar using : vpiToolbar::setValue(vpi::getTaskWindow(),resourceIdentifiers::idt_help_line,vpiToolbar::text_value("...my text here...")) If mdiProperty = false, the contain ...