Results 1 to 16 of 16

Thread: [RESOLVED] Multi OS support

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2009
    Posts
    57

    Resolved [RESOLVED] Multi OS support

    Hi everyone,

    Now, sorry if I am a bit frank, but I'll get straight to the point, I don't like Windows so much and I am starting to move to linux, so I have to find a way to develop programs for linux. Since I know VB quite well now, it would be quite a mess to start learning something new, so I was wondering if any other of you VB6 programmers were in a similar situation and if you could give me any suggestion or links to tutorials, etc. I heard about programs such as Wine (Win-e = Windows Emulator) which are meant for running .exe files on linux but also for converting exes to linux modules at compile time, but I didn't figure out yet how to do that. My preferred ultimate goal would be if I could continue coding my programs in vb6 (running on linux under wine) and convert them to linux programs when I compile them (then in that way I could compile them also as exes and make multi-platform programs), however ANY suggestion is welcome. Sorry, I know here there are people working in Windows world so I don't think many people will be able to help, but it's still regarding vb, so I just gave it a try. One thing which is important is that I do not want to use commercial software but only OPEN SOURCE programs (except of course vb which I will stand).

    @Administrators: Okay, I understand this forum discusses Microsoft software and I might not be pleasing you a lot by saying that I don't like Windows, am moving to Linux, etc. I apologize for this, and if you think it's really too much, just inform me and I'll remove it and ask my question elsewhere (perhaps on Linux forums).

    I hope you can help me.
    Thanks in advance for any response.

  2. #2
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Multi OS support

    There were plans for an open-source Linux version of VB6 in the past, but I've no idea at what stage it is now. Any multi-OS language has to have control over the specific OS or computer, and this means that the code has to be written to control the lower level functions that the OS usually handles. Java's an obvious example. VB6 in Linux would require Linux versions of all the windows functions/DLLs/etc. and this would be a hell of a lot of work, so don't expect it to work perfectly if they ever DO manage it. You'd be better off using WINE both for the programming and for running the code you program, but it's obviously not a permanent solution.

    Another option is to use Windows for programming and Linux for recreation...simple enough to reboot into another OS.
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Multi OS support

    VB6 is very heavily Windows based, and you will be basically shooting yourself in the foot trying to use it on Linux (even if you can get it working)... it would be far better to use something designed for the purpose instead, which may be something like Java or C++ or Delphi. These should allow you target both Linux and Windows.

    You could even use VB.Net, but non-Windows support is limited (gradually getting better from what I head), so while it is far better suited than VB6, it isn't ideal.
    Quote Originally Posted by Lknt View Post
    @Administrators: Okay, I understand this forum discusses Microsoft software and I might not be pleasing you a lot by saying that I don't like Windows, am moving to Linux, etc. I apologize for this, and if you think it's really too much, just inform me and I'll remove it and ask my question elsewhere (perhaps on Linux forums).
    There is absolutely no problem with discussing non-MS software (which is why we have forums for PHP and so on), or having different opinions about OS's etc... but as this is likely to move away from VB6 very quickly, I have moved this thread from our "VB6" forum to the "General Developer" forum.

  4. #4
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    739

    Re: Multi OS support

    RealBasic works on Linux, Windows and MacOS (Both PowerPC and Intel Macs)

    The Linux "Standard" version of realbasic is zero cost so no excuse for anyone not to at least give it a go to see what it's all about.

    The "Standard" versions of RealBasic can only compile for their own OS (meaning the Linux version can only compile a Linux application)

    The "Pro" version can compile for any other OS so the Pro version running on Linux can compile a MacOS and a Windows application as well as Linux so one project source can be compiled to 3 separate target operating systems.

    Although - to be honest - it's not as good as it sounds because you really ought to debug on the target OS so I bought the standard MacOS and Windows versions (The linux version is free) so can develop and compile on any OS for any OS.

    Another advantage with RealBasic is that the compiled application is a single file which contains all dependencies - it doesn't need to be installed - no conflicts with libraries etc on the target computer - no DLL Hell.

    www.realbasic.com

    Although I still prefer VB6

  5. #5

    Thread Starter
    Member
    Join Date
    Dec 2009
    Posts
    57

    Re: Multi OS support

    There were plans for an open-source Linux version of VB6 in the past, but I've no idea at what stage it is now.
    There is a program called Gambas which has code very similar to vb (in fact in the software list here in linux it is described like this: "Gambas almost means basic") and maybe that's what you are talking about. I am trying to use it and I can manage to make simple applications till now but I am lacking the productivity I had in vb. That's why I thought of using VB6 under Wine and convert the exes to linux modules while compiling if that was possible. However when I think better of it, some of the items that I miss in Gambas are the components which I had in VB (so the functions in the DLLs you were talking about, OCXs, etc. which certainly should be there when running VB6 in Wine since it's still a Windows program but shouldn't be in a true linux program like Gambas), so I guess I'll just have to make simpler programs at least till I get to learn more.


    There is absolutely no problem with discussing non-MS software (which is why we have forums for PHP and so on), or having different opinions about OS's etc... but as this is likely to move away from VB6 very quickly, I have moved this thread from our "VB6" forum to the "General Developer" forum.
    I hadn't remembered about the PHP and so on. Since the main name of the forum is VBForums I was expecting it to be more Microsoft related and run by people who promote MS software, etc. and that so you might not be happy that I did the exact opposite. And, yeah this should fit in better in General Developer.

    @IanS:
    I'll try out RealBasic even though I think it must be more different from VB.
    Although I still prefer VB6
    It's not that I don't like VB6 (especially since I got used to that and also I just do this as a hobby, so I don't really want to start learning new languages, etc.), but VB6 is only for Windows and I am moving away from Microsoft software (to tell the truth it's not really WINDOWS that I don't like, but you should get the idea if I say I am not really a MICROSOFT fan). Anyway linux is also better (especially in performance and security).

    Anyhow thanks a lot for the answers, I wasn't expecting such answers.
    I'll let you know what happens!

  6. #6
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Multi OS support

    I don't think Gambas was the project I was talking about, it was supposed to be VB6 *IN* Linux, not a cut-down version of it lacking in some of the important features.

    I looked around and found http://sourceforge.net/projects/vb4linux/ but it doesn't look like it's active. However, I also found http://www.linux.org/news/2007/02/21/0002.html which is about a program called Mono which could compile VB6 EXEs to run in Linux...no idea if it works :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  7. #7
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Multi OS support

    Try www.realbasic.com

    Very close to VB and supports other OS's
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Multi OS support

    Try .NET — you can run framework apps under Linux using Mono.

    I'm not sure if they support VB.NET yet but their C# support is fairly robust.

  9. #9
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Multi OS support

    Quote Originally Posted by si_the_geek View Post
    VB6 is very heavily Windows based, and you will be basically shooting yourself in the foot trying to use it on Linux (even if you can get it working)... it would be far better to use something designed for the purpose instead, which may be something like Java or C++ or Delphi. These should allow you target both Linux and Windows.
    What about the .NET languages (vb, c#, etc) are they Windows only?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  10. #10
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Multi OS support

    The line after what you quoted:
    You could even use VB.Net, but non-Windows support is limited (gradually getting better from what I head), so while it is far better suited than VB6, it isn't ideal.
    I have no need for anything non-Windows, so I don't know the situation in detail.

    From what others have said the framework is not too far behind the Windows version, so at least some .Net languages (mainly C#) will work to some degree.

  11. #11
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Multi OS support

    Quote Originally Posted by si_the_geek View Post
    From what others have said the framework is not too far behind the Windows version, so at least some .Net languages (mainly C#) will work to some degree.
    Ah ok! My dad has been trying to get me to switch to Linux from Windows but I had doubts about whether the programs I use such as Visual C#, etc would work properly if I switched operating systems.
    Last edited by Nightwalker83; Mar 17th, 2010 at 04:52 AM. Reason: Fixed spelling!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  12. #12
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Multi OS support

    They probably wont, or at least not be the best option (because there are .Net IDE's written for Linux)

  13. #13

    Thread Starter
    Member
    Join Date
    Dec 2009
    Posts
    57

    Re: Multi OS support

    The Linux "Standard" version of realbasic is zero cost so no excuse for anyone not to at least give it a go to see what it's all about.
    Well, I've selected the option for the standard version but here's what I get:




    (Please note that the above images might not always be available, that's why I also attached them)Name:  Screenshot-1.png
Views: 146
Size:  39.5 KB

    Name:  Screenshot-2.png
Views: 141
Size:  10.8 KB

  14. #14
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Multi OS support

    Quote Originally Posted by Nightwalker83 View Post
    Ah ok! My dad has been trying to get me to switch to Linux from Windows but I had doubts about whether the programs I use such as Visual C#, etc would work properly if I switched operating systems.
    If you switched, and wanted to continue developing .Net Applications, you could try using MonoDevelop:

    http://monodevelop.com/

    If you wanted to get your feet wet before making the switch, you could try the Windows Version of MonoDevelop first.

    Gary

  15. #15
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Multi OS support

    Quote Originally Posted by penagate View Post
    Try .NET — you can run framework apps under Linux using Mono.

    I'm not sure if they support VB.NET yet but their C# support is fairly robust.
    Hey,

    It certainly isn't as mature as C#, but VB.Net support is there:

    http://www.mono-project.com/VisualBasic.NET_support

    Gary

  16. #16

    Thread Starter
    Member
    Join Date
    Dec 2009
    Posts
    57

    Re: Multi OS support

    It's okay, I learned a bit more about Gambas and now it seems to be good enough, thanks for all your help though.

    Just to let everyone know, I guess I won't be visiting the forum very often anymore, but you never know.

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width