[Gambas-user] Gambas on Windows

Rolf-Werner Eilert rwe-sse at osnanet.de
Fri Jan 10 08:49:58 CET 2020

Am 10.01.20 um 06:07 schrieb Admin:
> I am using Gambas to write programs for Windows for quite some time now. 
> It is excellent. Before I had to port everything to Visual Basic, then I 
> used the way, which to this day is official - Cygwin. But for a long 
> time now, since you don't even have to be a Windows Insider Preview 
> member to install WSL on Windows 10, everybody can do it in one click 
> using Windows Store, software just works. I just use simple kernel 
> version detection like this:
> Dim kernel As String
> Dim isWindows As Boolean
> Shell "uname -a" To kernel
> If InStr(kernel, "Microsoft") Then isWindows = True
> Knowing I am in Windows I can call any exe file I want, for example 
> Shell("notepad.exe") just opens Windows Notepad. I can also call any 
> console Windows command like ping.exe and pipe it right away like 
> ping.exe | grep Destination - and it works perfectly.
> I use Xming started with Windows startup and create .lnk Desktop 
> Shortcuts to my graphical software simply like this:
> C:\Windows\System32\wsl.exe DISPLAY=:0 LANG=ru_RU.UTF-8 myprogramm.gambas
> so my software written in Gambas just runs on Windows Desktop by simply 
> double-clicking it. It's that simple
> So, my point is: isn't it time to officialy call it a way to run Gambas 
> in Windows instead of Cygwin? I mean I know, that Cygwin is more 
> universal, but it also is more complicated and Windows 10 became defacto 
> standard for Windows machines already.
> It feels kinda lonely without any official documentation on this type of 
> operation :-)
> Best regards
> Dmitry Bachilo.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

That sounds very interesting, Dmitry. Just a few questions:

What is the graphical component you use for your programs, qt or gtk+? 
And do you use the automatical switcher?

What about printing - is there a way of (at least) pushing pdf files 
into Windows' printing system?

You write about "Windows Store". Does it mean, I need an account with 
Mickeysoft for it?

We have one Win10 machine here for some of these indispensible programs 
every firm needs but which exist for Windows only. It would be great if 
I could run one or two of our Gambas programs there.

Last idea: Could you describe the way of installing WSL, Xming and a 
Gambas application on a Win10 machine? As I have so few experience with 
Windows, I wouldn't even know where to start ;)


More information about the User mailing list