Post by mayayanaYou can't run VB on Linux directly. You can
install Wine (winehq.org), which is basically
an API interpreter. It hooks the VB calls and
converts them to Linux versions. Wine works
fairly well, but last I saw it was still at least
slightly buggy with virtually all Windows software.
And it's somewhat slow. I think Wine is the kind
of thing that will work in a pinch but it doesn't
provide a smooth transition.
Thanks for your detailed reply. I read about Wine, and looks like 80%
of the solution. All software of that size will have some bugs, and
probably a lot fewer than Microsoft's, so that does not bother me.
Do I understand this right? I could install VB 6 on Wine sitting on
Linux, and then do (almost) all that I do on Windows including
modifying VB code and compiling it. I am no expert on VB and use very
little API stuff. Then when I make *.exe files, they will run only on
Windows or Wine, not on Linux (but I should not really need to run
them on Linux without Wine).
Wine won't have access to kernel32, gdi32, etc. libraries. Do I have
to avoid these or does Wine work around it?
Post by mayayanaThere are also Basic-like environments,
like Gambas. And I think that RealBasic
will compile for Linux. (?) But I haven't seen
a product like that with the flexibility of VB.
They tend to be more equivalent to VB for
beginners.
VB for beginners is not a problem. I tend to be a beginner in VB, and
do not use many "advanced" commands. Is it a better solution to
install other Basic compilers like RealBasic? Will they compile code
which can run on Windows or only Linux?
Post by mayayanaIf you use Wine, the more you stick to API
and avoid COM/ActiveX, the better off you'll
I don't use ActiveX and DLLs other than the ones necessary to run
Visual Basic, or any fancy OLEs. I am sure I don't even know what COM
is. Common Dialog I have used once or twice but I can probably work
around that.
Post by mayayanabe. Last time I tried Wine was about a year
ago. At that time they were working on improving
COM support, but ActiveX controls were not
working very well. It may be better now, but the problem
with Wine is the same as with most Linux OS
software: It never quite gets out of beta. The Wine
project has been going for years, at least since the
late 90's. They release a new version about every
ten days. But it's still not up to v. 1.0.
You people are experts on VB and every little thing about VB is
important to you. I am more of a beginner (at least not a professional
by any means), and need mostly the basic facilities of Basic with GUI
(mostly text boxes, commands, list boxes and labels on forms; may be a
picture box or two). In other words, even VB 2.0 equivalent should be
enough for me. I would like to be able to produce *.exe which run on
Windows and preferably also another *.exe which will run on Linux.
What is probably the best way for me? It would be good if you make a
recommendation based on this important fact that I am more or less a
beginner. It would be highly desirable that the version of Basic
(RealBasic or whichever) will not have an abrupt end, i.e. it should
not become suddenly impossible to use that.
Thanks again for your response.
Post by mayayanaPost by casual basicDo you know of Visual Basic versions which can be compiled on Linux
for running on Linux as well as Windows? Something like OpenOffice for
Visual Basic 6.0 and lower?
I am going to have one computer running Linux and one running Windows
XP in near future. I don't want Vista, and I don't want .Net at least
for now. I hope to be able to manage with Linux in future - even
modify my Visual Basic codes, compile them and run them on Linux as
well as let others run it on Windows XP or Vista or whatever. Is this
possible already today?