Results 1 to 9 of 9

Thread: Porting VB6 to Linux

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    83

    Porting VB6 to Linux

    Has anyone ever managed to get their VB program ported to run under Linux? Have looked at Real Basic, are there any other contenders out there? I'm after something that converts rather than requires a complete rewrite. Ideally I'd like to make the program run on a bootable Linux CD.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Porting VB6 to Linux

    I think the Linux folks would be in a better position to answer this, so I'm moving it the Linux section.

    Moved

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    83

    Re: Porting VB6 to Linux

    Rather than risk getting flamed for not reading/searching the forum, I have had a look and it seems Mono could be a decent choice. My VB6 app is tiny (300KB)and needs no installation on Windows to run so has few files it depends on, it needs no .Net framework. It runs in PE mode but I'd like it to run from Linux bootdisks.

    Is mono overkill and does a better and faster converter exist? Have also had a quick look at RealBasic and a Diamond Edge's VB to Java converter ($695).

  4. #4
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Porting VB6 to Linux

    I believe Mono is only for .NET programs. If your program is simply an .exe and does not have any dependencies on Windows other than that, then Wine or Winex should run it just fine.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    83

    Re: Porting VB6 to Linux

    Cheers for that. So any idea if I can boot into Linux, start Wine automatically and then automate my program to start within Wine? The more seamless the better. I'm ideally aiming at a bootdisk kind of feel; manually starting Wine then my program may feel too fragmented.

  6. #6
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Porting VB6 to Linux

    vb6 on linux, some may have a heart attack.

    On topic:

    Yes, you'll probably have to install the vb6 runtimes manually by running those installer .exe's under wine.

    If this is a GUI app, you can just add an entry to your startup list in the desktop environment (wine <path>). If it's a console app that you want to run without an X session then it can probably still be done but don't ask me.

    The latest Fedora has tools to create your own Live CD's, that could be useful to your bootdisk scheme.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  7. #7
    Fanatic Member kregg's Avatar
    Join Date
    Feb 2006
    Location
    UK
    Posts
    524

    Re: Porting VB6 to Linux

    I have responded to a similar question like this before. If you have any questions, feel free to ask.

  8. #8
    New Member
    Join Date
    Feb 2008
    Posts
    15

    Re: Porting VB6 to Linux

    I have installed VB6 on openSUSE 10.3 with WINE and it works well, except I cannot create VB6 Enterprise Edition projects, but the Standard EXE works well. In the attached screenshot is shown, how VB6 Enterprise Edition looks in openSUSE 10.3.
    Attached Images Attached Images  
    Last edited by Dely; Feb 26th, 2008 at 12:48 PM.

  9. #9
    Fanatic Member kregg's Avatar
    Join Date
    Feb 2006
    Location
    UK
    Posts
    524

    Re: Porting VB6 to Linux

    To be honest, VB6 is an aging language that's so nearly obsolete now, so there is no real point using it. However, if you do want to use some form of Visual Basic on Linux, try RealBasic or Gambas.

    Gambas is worth a look if you are into good programming practices.

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