Author Topic: Script BASIC COM  (Read 12238 times)

0 Members and 1 Guest are viewing this topic.

JRS

  • Guest
Script BASIC COM
« on: October 07, 2014, 04:17:25 PM »
The Script BASIC project could use some help testing Dave's IDE/Debugger and COM interface. The complete project and a Windows installer is available on the Bitbucket Script BASIC COM repository. Don (SB forum member) seems to be having lock-up / not responding issues and I unable to reproduce them under XP (VirtualBox) or Windows 7 64 bit. (WOW)

Quote from: Don
Either I am doing something wrong or else there is a bug in the Debugger.

When i load a SB script (for example testmath.sb) an click on the RUN button, everything seems to execute OK.  But if I then click on the scroll bars on the right side of the two windows or if I click anywhere in either window or on any of the program control buttons the Debugger freezes with the "PROGRAM NOT RESPONDING" messages and I have to do several ctl-dels to kill the hung up process "test".

P.S.  I have the same problem when using the previous version before your weekend update.

It would be really great if Jose Roca would find an interest in SB COM and help the project along.



.
« Last Edit: October 08, 2014, 10:30:41 AM by John »

JRS

  • Guest
Re: Script BASIC COM
« Reply #1 on: October 08, 2014, 10:15:11 AM »
Has anyone given this a try? It doesn't work for Don but works for me. Where do you stand in this dilemma?

Aurel

  • Guest
Re: Script BASIC COM
« Reply #2 on: October 08, 2014, 11:04:21 AM »
from the darknest corner of internet ....

.....this program talk and talk and talk,,,,, ;D
yes it work!

.

JRS

  • Guest
Re: Script BASIC COM
« Reply #3 on: October 08, 2014, 11:20:05 AM »
Thanks Aurel for giving it a try!

Do you have VB6 or the runtime libraries installed?


Aurel

  • Guest
Re: Script BASIC COM
« Reply #4 on: October 08, 2014, 01:30:12 PM »
No problem ,IDE is not bad ...
well believe or not ,this is the first time that Script Basic program work for me  :o
anyway...i have VB6 on CD somewhere but for runtime i am not sure ..probably is
installed or this program just work... ??? 

JRS

  • Guest
Re: Script BASIC COM
« Reply #5 on: October 08, 2014, 01:50:42 PM »
Quote
No problem ,IDE is not bad ...

Dave did a great job on the IDE/Debugger and his C code really shows how the internals of SB works embedded.

Hearing that your box worked was a sigh of relief. If it runs on Aurel's system, it should run on anything else.  :)

You should be able to add the rest of the extension modules (SDL_gfx, IUP, ...) and use the IDE with them. (3rd party dependency installs required)

It would be great to hear if it's working on Win 7 / 8 / 10 for anyone else.

JRS

  • Guest
Re: Script BASIC COM
« Reply #6 on: October 08, 2014, 02:49:54 PM »
I would like to propose standardizing on Dave COM interface for BASIC languages like O2, FBSL, ... and jointly maintain the project. After reading Frederick J. Harris's Converting Data Bound Grid Control Code To PowerBASIC Windows 10 there has to be a better way. Merging Dave's COM with Charles's DLLC is another thought I have pondered.

If the PowerBASIC folks are tired of waiting for a pheonix of PB, they should seriously consider joining us here for dose of O2.
« Last Edit: October 09, 2014, 12:49:25 AM by John »

Kuron

  • Guest
Re: Script BASIC COM
« Reply #7 on: October 08, 2014, 05:54:37 PM »
Hearing that your box worked was a sigh of relief. If it runs on Aurel's system, it should run on anything else.  :)

Because of him, I use a proprietary APDS (Aurel Proof Delivery System) for anything I release for Windows.  Truly does work for EVERYBODY.



JRS

  • Guest
Re: Script BASIC COM
« Reply #8 on: October 09, 2014, 01:40:06 AM »
I think one of the main items on the VB6 lives on list is XP theme support. (XP & Win7) I already have theme support in the VB6 IDE which works great. (see attached) I found a link that looks promising and plan on giving it a try with the SB IDE/Debugger.

VB6 XP/Vista/Win7 Manifest Creator

.

Mike Lobanovsky

  • Guest
Re: Script BASIC COM
« Reply #9 on: October 09, 2014, 07:13:31 AM »
Hi John,

1. The VB6 virtual machine's runtime msvbvm60.dll (its US locale build, to be precise) is a system library that comes in every clean Windows installation, original or OEM, localized or not, since Windows 2000. You can find it in the \system32 forlder of any OOTB 32-bit installation, or in the \SysWOW64 folder, under 64 bits. So, you shouldn't worry about the compatibility of your editor with any user PC regardless of the actual Windows version or locale it runs under so long as the editor continues to be re-compiled, if needed, by VisualBasic 6 localized for the U.S. Neither do you have to ship your own msvbvm60.dll with it because every Windows PC already has it installed in its default search PATH. In fact, failure to run your editor on a Windows PC is a 100% sure indication that the PC's Windows installation is broken or has been tampered with.

Official VB6 packages localized for other regions are however not ABI compatible with VB6's original US implementation and would therefore require their own msvbvm60 DLL's to be shipped along with VB6 programs created using such packages. I have checked it personally for legit Russian, French, and Spanish packages of VB6. The situation with warez distros of VB6 may be even worse than that. So, make sure your US VB6 package stays intact and don't allow unauthorized, amateurish recompilations to occur. (yet another headache of an open-source project, hehe...)

2. It is true that in order to support theming, any Windows application must have either a precompiled manifest resource or an associated .manifest file. But VB6's controls aren't simple common system controls that other languages would use. Most of them are superclasses augmented to suppress excessive flicker of ordinary common controls as they are being resized on non-composited desktops of W2K or XP or Classic themes of Vista+ platforms. They also allow for VB6's own backbuffering (the so called Autoredraw mode), which ordinary common controls won't do. Clearly enough, such improvements imply totally different drawing patterns that may be incompatible with the principles of Windows theming now or, more likely, in the future.

VB6 had been designed before Windows themes appeared therefore MS has never guaranteed that manifests would work for VB6 programs under all circumstances or with all Windows builds. All such theming was never officially supported and is totally at the developer's and user's own risk. Luckily enough home-brewn VB6 theming kinda works in most cases.

3. IIRC FBSL has had its own COM layer since the year of 2006 or thereabouts. It's capable of handling both local and inproc servers (i.e. exe and dll COM object sources) and it can also make use of ActiveX technology with some extra programming effort which isn't however too extreme to be totally impractical.

So, I beg your pardon but your proposition on standardizing FBSL to Dave-or-anyone-else-over-there-at-SB's COM does sound a bit out of place to me. Thanks for the invitation tho.

JRS

  • Guest
Re: Script BASIC COM
« Reply #10 on: October 09, 2014, 08:39:45 AM »
Thanks Mike for the VB history and what MS supports. Dave's COM interface is more than an OLE automation interface. It supports using VB & .NET forms/controls for the GUI and use SB for the callback routines. What the PB team has been after for years. I will post an example of this today.




Mike Lobanovsky

  • Guest
Re: Script BASIC COM
« Reply #11 on: October 09, 2014, 10:27:50 AM »
Thanks John,

I'm looking forward to seeing it in action.

JRS

  • Guest
Re: Script BASIC COM
« Reply #12 on: October 09, 2014, 10:41:14 AM »
Thanks John,

I'm looking forward to seeing it in action.

I posted it on the Script BASIC forum in a new thread.

Script BASIC COM VB example

JRS

  • Guest
Re: Script BASIC COM
« Reply #13 on: October 09, 2014, 04:36:02 PM »
I posted a Script BASIC COM example of accessing a C# .NET calendar control on the Script BASIC forum if anyone is interested.


Mike Lobanovsky

  • Guest
Re: Script BASIC COM
« Reply #14 on: October 09, 2014, 04:47:34 PM »
Are your VB6 and .NET GUI's compiled as ActiveX DLL's?