Search found 501 matches

by Tonton Luc
23 Mar 2015 14:23
Forum: Visual Prolog
Topic: unicode problem
Replies: 8
Views: 3504

by Tonton Luc
27 Feb 2015 9:51
Forum: Visual Prolog
Topic: Problem using Calendar
Replies: 4
Views: 2896

Hi,

Ok, the first column values are displayed correctly now.
Thanks for your help.
:-)
...I rectify in all DayCell.pro in my machine.
by Tonton Luc
27 Feb 2015 7:44
Forum: Visual Prolog
Topic: Problem using Calendar
Replies: 4
Views: 2896

From this sample => http://www.visual-prolog.com/vip/example/userExample/calendar/calendar.htm If you add a note() in this following clause in DayCell.pro , you can see "@obj_proc(0041453C,00329F68)" : get_CellStr(1,0) =toString( xCALENDAR:get_weekNo1) :- vpiCommonDialogs::note(toString(xCALENDAR:ge...
by Tonton Luc
26 Feb 2015 15:44
Forum: Visual Prolog
Topic: Problem using Calendar
Replies: 4
Views: 2896

Problem using Calendar

Hi,

I try to use Calendar in a VP 7.3 project from Calendar sample.
What does this first column mean ? or is it a bug... how to solve it ?
by Tonton Luc
30 Jan 2015 15:09
Forum: Visual Prolog
Topic: cURL : how to download a file from an URL ? [resolved]
Replies: 1
Views: 1560

Ok, I've found the solution : using getOutputBin() with the new VPcURL package.
by Tonton Luc
29 Jan 2015 12:49
Forum: Visual Prolog
Topic: cURL : how to download a file from an URL ? [resolved]
Replies: 1
Views: 1560

cURL : how to download a file from an URL ? [resolved]

Hi, Using this following code, I recover only the 5 first octets of the zip file link (*) in Result.zip : (*) URL = "https://contact.mercedes-benz.fr/brochure/c7c0dbf9-dd23-4dbd-b1d2-6d2fa4f04fed" => this link is only valid today. startCase(Action,URL) :- Action = 3, try ResultStream = outputStream_...
by Tonton Luc
29 Jan 2015 10:05
Forum: Visual Prolog
Topic: Is it possible to delete a mail using cURL ?
Replies: 1
Views: 2139

Is it possible to delete a mail using cURL ?

Hi, I've tried this following code without succes : startCase(Action,_) :- Action = 4, try ResultStream = outputStream_String::new(), Connection = vPcURL::new(ResultStream, caseCompletion, Action), _ = Connection:curl_easy_setopt(cURLOPT_USERPWD, s("xxx.xxx@xxx.com:my_passwd")), _ = Connection:curl_...
by Tonton Luc
28 Jan 2015 13:42
Forum: Visual Prolog
Topic: cURL : how to read mail ?
Replies: 11
Views: 4102

:idea: Using this following VP 7.3 code, all works fine : implement decrypt open core constants className = "TaskWindow/decrypt". classVersion = "$JustDate: $$Revision: $". base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/". class facts numDataBytes:integer:=erroneous. nGrou...
by Tonton Luc
27 Jan 2015 10:50
Forum: Visual Prolog
Topic: cURL : how to read mail ?
Replies: 11
Views: 4102

Hi,

Sorry but with VP 7.3 cryptography class have only base64_encode (not base64_decode).
Any other way ?
by Tonton Luc
27 Jan 2015 8:43
Forum: Visual Prolog
Topic: cURL : how to read mail ?
Replies: 11
Views: 4102

Hi, Here is the beginning of the respons when I read only the first mail with cURL : Received: from smtp-1.planint.com ([83.165.37.24]) by mail.rd-cassis.net (rd-cassis.net) with ESMTP id 201501561657565548 for <xxx.xxxxx@jdklog.com>; Mon, 26 Jan 2015 16:57:56 +0100 Received: from mbprod2008web.neo....
by Tonton Luc
14 Jan 2015 15:42
Forum: Visual Prolog
Topic: cURL : how to read mail ?
Replies: 11
Views: 4102

Hi Jan, I don't understand what you mean. Can you explain-me more ? I've changing my code : caseCompletion(cURLE_OK, 2, Connection) :- ResultStreamS = uncheckedConvert(outputstream_string, Connection:getOutputStream()), Received = ResultStreamS:getString(), ResultStreamS:close(), Received8 = uncheck...
by Tonton Luc
2 Jan 2015 13:41
Forum: Visual Prolog
Topic: cURL : how to read mail ?
Replies: 11
Views: 4102

cURL : how to read mail ?

Hi, Here is my code : startCase(Action) :- Action = 2, try ResultStream = outputStream_String::new(), Connection = vPcURL::new(ResultStream, caseCompletion, Action), _ = Connection:curl_easy_setopt(cURLOPT_USERPWD, s("my_email@my_domain.com:my_password")), _ = Connection:curl_easy_setopt(cURLOPT_URL...
by Tonton Luc
26 Dec 2014 10:13
Forum: Visual Prolog
Topic: CPU
Replies: 5
Views: 2005

Ok, I've found my mistake.
The following code works fine :

Code: Select all

Exe = useExe::new(string::concat("cmd /c",Fic_js)),
by Tonton Luc
26 Dec 2014 10:04
Forum: Visual Prolog
Topic: CPU
Replies: 5
Views: 2005

Hi, I try to reproduce this VP5 following code without success : task_win_eh(_Win,e_Menu(id_test,_ShiftCtlAlt),0):-!, Fic = "cpu.js", si_creation(Fic), existfile(Fic), system(Fic,0,R), msg_clear(), write("Charge CPU = ",R," %"),nl, !. si_creation(Fic):- not(existfile(Fic)), list_to_string(["var objW...
by Tonton Luc
23 Dec 2014 8:59
Forum: Visual Prolog
Topic: CPU
Replies: 5
Views: 2005

Hi Dominique,

Exactly what I need.
Many thanks for your help.

For Thomas => now you understand better what I'm looking. Many thanks too.