Re: VB 6 compilation on Linux for execution on Windows and Linux



On Thu, 12 Apr 2007 20:18:28 GMT, mayayana wrote:

I'm finding these comparisons quite interesting.
I've never even heard of XBasic. If you, or someone,
cares to take the time, it would be interesting to
hear a more detailed comparison of differences.
I'm especially interested easy API usage and in
avoiding java/dotnet style OO coding. (Though I
suppose that aspect probably gets more prevalent
with cross-platform coding, since the APIs wouldn't
be directly usable.)


XBasic is at http://www.xbasic.org/
It was originally written by Max Reason (with QB as I recall) and creates
fast .exe's but still requires a runtime module. I includes a GUI designer
and isn't a huge step from VB as much of the language is reminiscent of QB.
For the most part the applications created by XBasic have a fairly distinct
look, I think it uses it's own embedded fonts and such for the screens and
labels. It is free and complete though and has great community support. You
should be aware though that calling a WIN32API function does immediately
make the result windows only. XBasic does include compiler directives that
inform the compiler that compile this way for Windows and the other way for
Linux, but if you do something that is Windows API, then you also need to
do that for the Linux libs otherwise it will not be cross platform.

Another really interesting point about XB is that it is actually written in
XB, so once you know the language you can change it or add to it as you see
fit. At one time this was the true measure of a compiler in that the
compiler can actually compile itself. I have no idea who decided to measure
compilers this way, personally for me, if it works, that's good enough for
me.

Really the only way to get a feel for this animal is to download it and try
it. Try some tutorials and read the docs, you should be off. It's been a
long time since I've played with XBasic, but it seemed none too difficult
at the time for me.

Have fun.

--
HK
.



Relevant Pages

  • Re: hmm..interesting
    ... you've got a discussion of ARM vs Intel architecture here: ... And ARM is rapidly running away from RISC. ... mainstream (many netbooks and smartphones run Linux instead of Windows ... And hardly any C compiler does. ...
    (comp.sys.acorn.hardware)
  • Re: Quick question about streams...?
    ... Okay, I don't mind learning all there is to learn, but wait a minute... ... And isn't the API a bunch of C functions? ... Whereby they made Windows out of C language right..... ... VC++ is a compiler that will compile C and C++ programs. ...
    (microsoft.public.vc.language)
  • Re: Stalin ported to Windows.
    ... Therefore, the compiler ... Stalin from Scheme sources; it took six hours to generate the C ...   Junia and Reane  got a working Windows port from the C ...
    (comp.lang.scheme)
  • Re: hmm..interesting
    ... work out at more power per Watt than x86. ... mainstream (many netbooks and smartphones run Linux instead of Windows ... the fact that Visual Studio allows you to get away with fairly sloppy ... difficult to find a C compiler that *doesn't* have vendor-specific ...
    (comp.sys.acorn.hardware)
  • Re: C++ programming migration from DOS to Windows
    ... compiler, so the current compiler is quite competitive WRT to ... There are a couple of ports of gcc to Windows. ... Comeau is more or less unique: the best language conformance you can ... IDEs: Microsoft and Borland have both produced decent IDEs in the past, ...
    (comp.lang.cpp)

Loading