Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Creating Windows apps with 'built-in' Wine

  1. #1
    Join Date
    Sep 2009
    Location
    Pakistan
    Posts
    201

    Lightbulb Creating Windows apps with 'built-in' Wine

    The idea just occured to me. Is it possible to write a program using a Windows BASIC programming language and then do something to it which will ensure that the program will run on Linux normally by having something like a 'built-in Wine'? So that the user won't need to download and install Wine just to run one Windows application on Linux.

    Maybe this has already been done by someone, but I don't know how; can someone please shed some light as to whether this is possible and if so, then how to do it?

    Regards,
    Muhammad
    "Darkness called But I was on the phone, so I missed him. I tried to *69 Darkness, but his machine picked up. I yelled "Pick up the phone, Darkness!," but he ignored me. Darkness must have been screening his calls."

  2. #2
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: Creating Windows apps with 'built-in' Wine

    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  3. #3
    Join Date
    Sep 2009
    Location
    Pakistan
    Posts
    201

    Default Re: Creating Windows apps with 'built-in' Wine

    I know about Gambas but that's not what I was asking for. I might give Gambas a whirl if I feel like it and see if it does the job for me, but my question was: how to make a Windows-native software be configured in such a way to include a standalone version of Wine that will work only with the program itself. That way, the user could install and use that Windows application on Linux just as he would use it if it was a Linux-native version, even if he did not have Wine installed on his machine.

    BTW, the requirements for Linux programming seem a bit high; I can safely say that the easiest versions of BASIC are for Windows and not for Linux (take a look at Just BASIC).
    In Linux, C++ and similar languages seem to be more commonly used.
    "Darkness called But I was on the phone, so I missed him. I tried to *69 Darkness, but his machine picked up. I yelled "Pick up the phone, Darkness!," but he ignored me. Darkness must have been screening his calls."

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,746

    Default Re: Creating Windows apps with 'built-in' Wine

    Only use the very most basic windows libs. Avoid things like activeX controls.

  5. #5
    Join Date
    Sep 2009
    Location
    Pakistan
    Posts
    201

    Default Re: Creating Windows apps with 'built-in' Wine

    Quote Originally Posted by gogalthorp View Post
    Only use the very most basic windows libs. Avoid things like activeX controls.
    OK, now I get it. So I suppose this is the plan of action I should take:

    1. Construct a Windows app using the BASIC dialect I know, making sure it uses no Windows-specific things like ActiveX controls.

    2. Use Gambas to compile that program properly and make it into a Linux package.

    3. Submit it to the openSUSE build service.

    BTW, how can I be sure that Gambas will be compatible with the BASIC dialect I used to construct the program? I'm using Just BASIC, which uses simple BASIC syntax. One thing worries me, though: this JB language seems to be optimized for MS-Windows. It has commands like FILEDIALOG (for calling up a file selection dialog), NOMAINWIN (to prevent a terminal-like text window from coming up while the program is running), and others. If I run this program using Gambas, will it work?
    Sorry if these are silly questions, but I'm not very experienced in the field of coding.
    "Darkness called But I was on the phone, so I missed him. I tried to *69 Darkness, but his machine picked up. I yelled "Pick up the phone, Darkness!," but he ignored me. Darkness must have been screening his calls."

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,746

    Default Re: Creating Windows apps with 'built-in' Wine

    Read the Doc's.

    Gambas - Gambas Almost Means Basic

    Getting started and differences to VisualBasic

  7. #7
    Join Date
    Sep 2009
    Location
    Pakistan
    Posts
    201

    Default Re: Creating Windows apps with 'built-in' Wine

    I see ... Well, I've gathered that I can pick up the source code for the app I'm currently developing, change it here and there wherever is necessary (for it to be Gambas-compatible) and then continue its development in Gambas.

    Thanks for your help.
    "Darkness called But I was on the phone, so I missed him. I tried to *69 Darkness, but his machine picked up. I yelled "Pick up the phone, Darkness!," but he ignored me. Darkness must have been screening his calls."

  8. #8
    palladium NNTP User

    Default Re: Creating Windows apps with 'built-in' Wine

    not sure i'm smart enough to understand the question...and, not sure
    this is still true (or ever was) but i understand that the installable
    GoogleEarth for Linux included its own, highly tuned WINE..

    ah, see google:
    http://www.google.com/search?q=Googl...inux+runs+WINE

    --
    palladium

  9. #9
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: Creating Windows apps with 'built-in' Wine

    Quote Originally Posted by palladium View Post
    not sure i'm smart enough to understand the question...and, not sure
    this is still true (or ever was) but i understand that the installable
    GoogleEarth for Linux included its own, highly tuned WINE..

    ah, see google:
    GoogleEarth Linux runs WINE - Google Search

    --
    palladium
    It is possible to have customized wine configuration for each M$ EXE application. By default, wine configuration is stored in the .wine directory but that is not necessary and an application can have its own wine set up.
    Like, Google Earth, another example is IE4Linux.
    IEs4Linux
    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  10. #10
    Join Date
    Sep 2009
    Location
    Pakistan
    Posts
    201

    Default Re: Creating Windows apps with 'built-in' Wine

    Interesting ... I might try somehow putting a stripped-down version of Wine into my program's directory and configure it to run automatically when I start the application; to give the user a false impression that the software is a native Linux one. For that, though, I would have to change Wine's default Windows 98-like theme to something more KDE/Gnome-ish to be sure the deceit worked.

    But for now, I'm going to try Gambas.
    "Darkness called But I was on the phone, so I missed him. I tried to *69 Darkness, but his machine picked up. I yelled "Pick up the phone, Darkness!," but he ignored me. Darkness must have been screening his calls."

Page 1 of 2 12 LastLast

Posting Permissions

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