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 ... 11 12 [13] 14 15 ... 59
181
Extension Modules / Re: JAPI 2.0 Enhancements
« on: June 26, 2014, 03:34:21 PM »
I did most of the deprecation changes an was moving in a swing direction. It still needs some work but is still a usable cross platform solution. Keep in mind that the current version of Chrome (35) and going forward no longer supports Java. (migrated away from Gtk) Here is a JAPI thread on the forum I did some time ago that may be helpful. Also search the forum for JAPI and you may find a few more posts.

JAPI 2 Examples

182
COM / Re: Windows Web Services Functions
« on: June 26, 2014, 02:16:03 PM »
Thanks Dave for the links. It will give me something else to work on while getting the theming figured out.


183
COM / Re: Windows Web Services Functions
« on: June 26, 2014, 12:32:02 PM »
I was just looking for something COM to play with.

I use cURL for all my web related tasks.


184
COM / Windows Web Services Functions
« on: June 26, 2014, 11:15:20 AM »
Hi Dave,

I don't mean to distract you from what you have going on but José Roca posted a link on his forum that looks interesting and something I might be able to try with your new COM interface for Script BASIC. Your thoughts?

John


185
Extension Modules / Re: JAPI 2.0 Enhancements
« on: June 26, 2014, 08:19:27 AM »
The JAPI.JAR is compiled into the C extension module as a binary string.

That is old unsupported code you're playing with there.   ;)

186
COM / Re: ActiveX with VB.NET
« on: June 25, 2014, 12:23:21 AM »
The RegAsm of the DLL did the trick on Windows 7 64 bit.



C:\sb22_32\sbvb-2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe Sample.dll
Microsoft .NET Framework Assembly Registration Utility version 4.0.30319.18408
for Microsoft .NET Framework version 4.0.30319.18408
Copyright (C) Microsoft Corporation.  All rights reserved.

Types registered successfully

C:\sb22_32\sbvb-2>scriba cs_date.sb
User Selected date: 6/25/2014
C:\sb22_32\sbvb-2>

187
General Discussions / Re: curl Segmentation fault
« on: June 24, 2014, 03:09:24 PM »
That's good news and thanks for testing. Looks like an Ubuntu issue.

I can get the current Ubuntu version to run as a background job and works as if I started it with a sbhttpd -start. It dives me nuts when things that have been working forever all of a sudden don't.


188
General Discussions / Re: curl Segmentation fault
« on: June 24, 2014, 02:26:42 PM »
The -safe option creates two sbhttpd processes in case one fails the other takes over. A fault tolerant mode of sorts. The mode should only be run when debugging an issue with sbhttpd. Can you try the sbhttpd -start option and see if it starts as a service? Does deleting the pid.txt to do a graceful shutdown cause a seg. fault?


189
General Discussions / Re: curl Segmentation fault
« on: June 24, 2014, 12:17:15 PM »
There is more to this story going on IMHO. I'm having issues starting sbhttpd as a service on Linux 64 bit with the new builds. (haven't tried 32 bit sbhttpd) Lucky I have something that works from a previous build but reproducing it has become a challenge. I'm thinking we are seeing the results of a gcc deprecation support drop off in progress.  :-[

Still working on it.


190
COM / Re: ActiveX with VB.NET
« on: June 23, 2014, 11:28:26 PM »
I was unable to get the .net date picker to run under Windows 7.  I registered the control and copied the Sample.dll to the bin directory.


C:\sb22_32\sbvb-2>scriba cs_date.sb
Failed to create the C# com object did you register the dll with regasm and have .NET installed?(0): error &H26:The command RETURN can not be executed, because there is no where to return.

I think the RETURN is causing scriba to exit due to failure and END should probably be used. I'm surprised your not seeing an ERROR 38 with the RETURN with nowhere to go. (possibly exited before error message could be displayed ?)

FYI: You can add your own key/data pairs to the Script BASIC configuration file and call it with the SB ext. module API.

BTW: I really enjoy your videos. Very informative!

191
COM / Re: ActiveX with VB.NET
« on: June 23, 2014, 03:44:30 PM »
Didn't know that and have always used END. Thanks for the trick.


192
General Discussions / Re: curl Segmentation fault
« on: June 23, 2014, 03:43:02 PM »
Okay. That gives me something to try.

Any chance this could be a file permission thing?

193
General Discussions / Re: curl Segmentation fault
« on: June 23, 2014, 01:12:58 PM »
No offense but that has to be the strangest cURL file upload call I have ever seen. No encoding of the POST data???

After a second look ...

Code: [Select]
curl::option CurlHandle,"HTTPPOST","name=Desade+Marquis"

Your a1, a2, a3 should be in the above format. (Base64 Encoded)

Code: [Select]
name=@filename

This can be used to specify a file to upload. This is like what the browser sends to the web server when an <input type=file name="name"> is used.

Interesting. I have never uploaded a file this way before.

HTTPPOST string




194
COM / Re: ActiveX with VB.NET
« on: June 23, 2014, 12:36:48 PM »
Amazing!



Code: [Select]
import com.inc

cs = CreateObject("Sample.Sample")

if cs = 0 then
print "Failed to create the C# com object did you register the dll with regasm and have .NET installed?"
return
end if

d = CallByName(cs, "GetDate")
print "User Selected date: ", d

C:\SB22\sbcom\sbvb6>scriba cs_date.sb
User Selected date: 6/23/2014
C:\SB22\sbcom\sbvb6>


Q. What does the return do in your example?

195
General Discussions / Re: curl Segmentation fault
« on: June 23, 2014, 08:02:05 AM »
Ron,

Can you post a snippet of Script BASIC code that shows the seg. fault occurring? I compiled the libcurl extension module on the latest Debian OS using the same cURL ext. module code that is used in 2.1. (nothing in that module changed - used latest libcurl code) The ext. modules (depending who wrote them) may not handle wrong or missing arguments which may be causing the seg. fault. Being able to reproduce the error will help resolve it. Have you tried uploading a file with the cURL command line utility?

Thanks!

John

Pages: 1 ... 11 12 [13] 14 15 ... 59