Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Support

Pages: 1 ... 4 5 [6] 7 8 ... 59
76
General Discussions / Re: convert epoch time
« on: October 25, 2016, 01:59:21 PM »
Like I said, Script BASIC only has 1 second resolution. The number you're getting back from NOW or GMTIME is seconds past Jan. 1, 1970 00:00 AM. You need to do milliseconds function in an extension module like I did with SDL_gfx or IMPORT it.



77
General Discussions / Re: convert epoch time
« on: October 25, 2016, 12:40:32 AM »
Script BASIC only has a resolution of 1 second. I created a millisecond resolution timer using the SDL_gfx extension module.

78
General Discussions / Re: convert epoch time
« on: October 24, 2016, 12:37:34 PM »
Code: Script BASIC
  1. FormatDate("format",time)
  2.  

Arguments

format is a string using the formatting characters described in the docs.

time can be NOW or any other number of seconds past Jan. 1, 1970.

It's really easy to do date math in Script BASIC.

79
General Discussions / Re: curl::escape(URLnonencoded)
« on: October 16, 2016, 05:26:30 PM »
I have been working on building a TDM-GCC32 version of Script BASIC for Windows 32 and once again the cURL extension module is being dependent/reference elusive. What you have works with HTTPS: (with the discovery of LIBCURL.DLL I found) which is an old VC9 compiled version with SSL support. The current version of cURL .a resources complain with missing references I'm unable t resolve at this time. I was able to compile a nossl version which seems to solve your curl::escape() issue. The attached zip contains the Script BASIC curl.dll extension module and doesn't seem to require the libcurl.dll or curl.dll resources to run. I hope to revisit this when I have more time to get a SSL/SSH version of cURL working on 32 bit Windows.




80
General Discussions / Re: module NT
« on: October 14, 2016, 10:08:39 AM »
I don't have Windows 10 to test this. Are you sure the registry key you are after is is really there? Can you access any other registry keys?

81
General Discussions / Re: convert epoch time
« on: October 03, 2016, 11:24:56 AM »
Take a peek at  the FORMATDATE() function.

82
General Discussions / Re: curl::escape(URLnonencoded)
« on: September 15, 2016, 09:44:19 AM »
I tried to compile a new curl.dll extension module for Windows last night and it complained looking for the dependency curllib.dll instead of libcurl.dll. Why and where the screw up is I don't know at the moment. I'll keep chipping away at it as I have time.


83
General Discussions / Re: curl::escape(URLnonencoded)
« on: September 08, 2016, 11:19:25 AM »
I'm glad you were able to find a workaround until I have time to fix the Script BASIC cURL extension module. I'll post a new Windows 32 version once I get it working. Thanks for the heads-up and testing!

84
General Discussions / Re: curl::escape(URLnonencoded)
« on: September 07, 2016, 12:37:05 PM »
Works fine on Linux.

Code: Script BASIC
  1. Import curl.bas
  2.  
  3. url = curl::escape("http://www.scriptbasic.org/forum/index.php/topic,342.0.html")
  4.  
  5. print url,"\n"
  6.  


jrs@laptop:~/sb/sb22/test$ scriba curl_esc.sb
http%3A%2F%2Fwww.scriptbasic.org%2Fforum%2Findex.php%2Ftopic%2C342.0.html
jrs@laptop:~/sb/sb22/test$


Under Windows 7 32 bit it crashes scriba with a Windows exception.  ::)

Can you try it with the command line version of cURL and see if you get the same results?

I took a quick peek at the cURL extension module code and it seems the escape/unescape  routines use free() while others use besFREE(). The free() should only be used if Script BASIC isn't using it's MyAlloc thread safe memory manager and using a single threaded model and alloc(). The escape stuff must have been added later by someone else. (All theory at this point.) Why it works in Linux, I don't have a clue.

85
General Discussions / Re: curl::escape(URLnonencoded)
« on: September 07, 2016, 03:18:20 AM »
Can you post a minimalistic example to test?

86
General Discussions / Re: curl::option CURL,"COOKIEFILE"
« on: August 31, 2016, 09:43:12 AM »
Glad you got that worked out.

Windows security is a joke!

87
General Discussions / Re: curl::option CURL,"COOKIEFILE"
« on: August 30, 2016, 10:22:27 AM »
Windows doesn't like files being created in the root directory.

Can you try running your script in a console that has administrative privileges? This will tell you if it's a permission problem or not.


88
General Discussions / Re: curl::option CURL,"COOKIEFILE"
« on: August 29, 2016, 11:33:01 PM »
Did you try using a full path for cookies.txt?

Just a guess. I would look at the LibcURL docs and do a Google search for the option, specifying Windows.

89
General Discussions / Re: curl https
« on: August 16, 2016, 01:31:04 AM »
Glad I can help and I hope you enjoy Script BASIC.

90
General Discussions / Re: curl https
« on: August 12, 2016, 12:22:09 PM »
This LIBCURL.DLL seems to work fine under Windows 7 32 bit.

Pages: 1 ... 4 5 [6] 7 8 ... 59