Results 1 to 21 of 21

Thread: Visual Basic x Linux

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Question

    Some one knows if Visual Basic can run under Linux?

    Jefferson

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    No it can't

    I am wondering what would have made you think it would?

    Visual Basic is a "Windows" application designed to run on Windows95/98/NT. Linux is a completely different Kernel to Windows and therefor could NEVER run a Microsoft or Windows application.

    Some Unix platforms (ie SCO-Unix v5 Enterprise) has a software simulation module that allows you to run MS applications within their GUI environment but it isn't a solution.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298

    Question VB to MySQL........

    I've been trying something along the same lines....well, not actually running VB under Linux, but to connect VB to MySQL.....I haven't actually managed it. I was told that certain configurations have to be done to the Linux server, but even if thats done I'd have problems coz of timeout. Is there any soultion to this?

    Thanks.

  4. #4
    Guest
    I once stumbled upon a site wich was busy creating a virtual machine for vb, i unfortunatly lost the url ;(

    If i happen to find it again ill post it here.

  5. #5
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    I`ve played with Linux a little and have been disappointed with it (the gui is well tacky)...

    but i think theres a project called Wine for running windows in a..window? perhaps you could run vb in that, and talk to mysql (assuming thats a linux app) that way?

    a.

  6. #6
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    There is also a program called (i think) vmware that enables you to run the whole windows(and most other) operating system within linux. Like Pallex said, linux also contains wine and other software for running dos and windows programs. I'm not sure how stable these programs are, but they do have them.

  7. #7
    Junior Member
    Join Date
    Apr 2000
    Posts
    27

    There is also a program called (i think) vmware that enables you to run the whole windows(and most other) operating system within linux. Like Pallex said, linux also contains wine and other software for running dos and windows programs. I'm not sure how stable these programs are, but they do have them.
    well if i recall it right, vmware is to run linux under windows... not the other way around!
    Life's hard, but the front of a train is harder

  8. #8
    Guest


    There is also a program called (i think) vmware that enables you to run the whole windows(and most other) operating system within linux. Like Pallex said, linux also contains wine and other software for running dos and windows programs. I'm not sure how stable these programs are, but they do have them.
    well if i recall it right, vmware is to run linux under windows... not the other way around!
    Well vmare has mutlipile versions, a linux version, and a nt version and another one i think.

    But vmware wasn't what i meant, i meant a virtual machine, like something that java uses.

  9. #9
    Junior Member
    Join Date
    Apr 2000
    Posts
    27


    Well vmare has mutlipile versions, a linux version, and a nt version and another one i think.

    But vmware wasn't what i meant, i meant a virtual machine, like something that java uses.


    explain... (lijkt me wel interresant hehe)
    Life's hard, but the front of a train is harder

  10. #10
    Guest



    Well vmare has mutlipile versions, a linux version, and a nt version and another one i think.

    But vmware wasn't what i meant, i meant a virtual machine, like something that java uses.


    explain... (lijkt me wel interresant hehe)
    Well i think it will work like an interpeter, i have no idea how they would make something like that work(translating window calls to unix calls), but as soon as i find the page/url again, ill post it here.


    (En ja het lijkt mij ook wel intressant)

  11. #11
    Member
    Join Date
    Jun 1999
    Posts
    52

    Lightbulb

    Let's see if we can set some things straight. VMWare is an attempt to create a virtual machine that wil run windows within a linux system. I'm not sure if there is a version to run linux within windows. I don't think there is. As for the comment:
    I`ve played with Linux a little and have been disappointed with it (the gui is well tacky)...
    The gui offered to linux is not part of linux...there are two major attemtps to create a graphical interface for linux: KDE and GNOME. They are not are part of linux like windows desktop/explorer/etc. is a part of windows. They are optional. Pallex also mentioned WINE (Wine Is Not an Emulator) which was the first attempt to run windows and it's apps in linux. There has been an attempt to run VB apps on linux independently. Check out this site:
    http://softworksltd.com/vbvm.html
    I think that maybe that may have straightend some stuff out. Hope this helped.
    -Adam
    Yahoo!: _eclipsed_
    ICQ:18534929

  12. #12
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    For those trying or wanting to connect VB with MySQL.

    Unfortunately I don't think you will have very much luck in doing this. First you have to overcome the difference in platforms and THEN you have to overcome connection.

    That is the reason why CGI languages such as Perl and PHP actually provide proper modules for connecting to MySQL.

  13. #13
    Guest

    Angry Yeap no problems..but then why Linux

    Yeap you can run vb apps on Linux. However, and this is the crunch, you have to get any one of a number of windows support packages. Load it to linux, then ya can load windows, then ya can load the vb app....However in all of this what exactly is the point of putting it on linux in the first place, (hmm...have done this for a linux client on a sun server network).

    Delphi are porting a version to Linux, which is probably a better bet for you. Native RADs are always preferrable to have to support multiple layers of software, e.g your app falls over cos of what, the vb code, the windows interface, the windows host software, or linux....???????

    Keep to vb especially version 7 which is way cool, and do it on a win 2000 platform. Finally MS programmers can directly attack unix clients

  14. #14
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Technically it is NOT running on Linux.

    It is actually running on a software emulation of Windows over the top of the Linux Kernel.

    What the person was actually asking was using Visual Basic ON Linux itself and not on an emulation...

    There is a very distinct difference....

    We have all seen Commodore 64 Emulators for the PC... this doesn't mean I am running my C64 game "on the PC" but on a software emulation of the 68EC00 chipset.

    The Linux version does the same... it emulates the CPU (80x86 or Pentium or whatever) and loads the software over it, faking it to believe it has everything it needs.

    Another thing these emulators usually do is make their own seperate hard drive area that uses the FAT file system and you cannot see the Linux files or folders at all

  15. #15
    Guest
    Yeah of course a vb app will not run directly on a Linux machine, in the same way it will not run on an Apple or BeOs machine.

    My point was there are ways of loading a vb app to a linux configured machine. If you had actually read my discourse you would have notice thatn l mentioned this was not a good idea and involved multiple layers of software.

    In conclusion l was wandering why you would use linux in the first place, if your primary requirement was to run vb programs.

  16. #16
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    hehehhe....

    Because you have a person who only knows how to program in Visual Basic but has just been told they are using a Linux machine to do their work on.


    Instead of coming to the realisation they need to acquire new skills and set about researching a language that runs on Linux to do the job they have decided to see if they can force a square peg into a round hole.

    I see it alot

  17. #17
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    in response to _eclipsed_

    where he says

    ------------------------------------------------------------
    As for the comment:
    quote:
    --
    I`ve played with Linux a little and have been disappointed with it (the gui is well tacky)...
    --

    The gui offered to linux is not part of linux...there are two major attemtps to create a graphical interface for linux: KDE and GNOME. They are not are part of linux like windows desktop/explorer/etc. is a part of windows. They are optional.

    ------------------------------------------------------------

    I meant no disrespect to Linux, mate! I like a lot of the ideas behind it...directory structure (where physical partitions are insulated from the user), security (ie no viruses, at least at the moment), the open source ethos... but having a gui which is as slow, jerky, fiddly, unstable and awkward as, say, Gem on the st, or early windows, isnt going to convert many people! Which is a great shame. Also, i think the `front end` of windows is more closely integrated with windows itself than the seperation of KDE et al from the Linux kernal. This may explain that, although linux is supposed to be more resourceful in its use of the cpu (ie faster for a given clock speed than windows), i dont notice that in use.

    I`ll continue to play around with Linux though...maybe i`ll just use a shell rather than a gui.

    btw, which distro do you recommend? I`ve tried a few, but dont know enough about them to know which is `best`.

    Thanks,
    Alex (pallex, whatever!)

  18. #18
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    We have a couple of file servers running Linux and all GUI's run fine..
    About VmWare, VMWare comes in a few tastes... linux version and WinNT version...
    They all do the same: Provide a virtual machine to run a guest OS.
    Which means you can run a 2nd NT on a NT with VMWare, run Linux on that NT box, run NT in VmWare in Linux, run another Linux distibution in Linux, run Dos in Winnt (*LOL*).

    One of the replies was a virtual machine for Vb, now I've seen it too, even tried it... I don't know where I found it, but it was not a vm like vmware or wine, if i remember it was like "that vm program.exe myprog.exe", and that program (VM) catched the calls to the VB runtime dll's, and emulated that stuff, something like that.. I think it was version 0.00001 pre-alpha release or something, and it crashed my whole nt box, but the idea is kewl.

    On the other hand, why code in VB if you don't plan to run it on a Windooz machine. Better learn a native language for that other platform (probably C/C++).
    I read too that Borland is working on an IDE that will run on several OS's, and let you compile on 1 OS for multiple OS's. That would be so neat :-) Now I only have to convince the boss that Linux runs better then NT, and Borland has better IDE's and languages then VB... ;-)
    (wat de boer (uhmm...baas) niet kent vreet 'ie niet...)
    Hope this helps

    Crazy D

  19. #19
    Guest

    We have a couple of file servers running Linux and all GUI's run fine..
    About VmWare, VMWare comes in a few tastes... linux version and WinNT version...
    They all do the same: Provide a virtual machine to run a guest OS.
    Which means you can run a 2nd NT on a NT with VMWare, run Linux on that NT box, run NT in VmWare in Linux, run another Linux distibution in Linux, run Dos in Winnt (*LOL*).

    One of the replies was a virtual machine for Vb, now I've seen it too, even tried it... I don't know where I found it, but it was not a vm like vmware or wine, if i remember it was like "that vm program.exe myprog.exe", and that program (VM) catched the calls to the VB runtime dll's, and emulated that stuff, something like that.. I think it was version 0.00001 pre-alpha release or something, and it crashed my whole nt box, but the idea is kewl.

    On the other hand, why code in VB if you don't plan to run it on a Windooz machine. Better learn a native language for that other platform (probably C/C++).
    I read too that Borland is working on an IDE that will run on several OS's, and let you compile on 1 OS for multiple OS's. That would be so neat :-) Now I only have to convince the boss that Linux runs better then NT, and Borland has better IDE's and languages then VB... ;-)
    (wat de boer (uhmm...baas) niet kent vreet 'ie niet...)
    Yes, vmware does come in all sort of flavors(For windows its only Win NT/ Win 2000, not Win 9x).

    And what i meant was indeed the a virtual machine for Vb, it crashed my pc too, but unfortunatly i lost the url ;(, cause it was a neat idea and i would like to see if they made some progress.

  20. #20
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Lightbulb

    I followed the link earlier in this thread and came across this:

    http://www.basicguru.com/abc/rapidq/index.html

    It's great! It compiles to a standalone exe on windows, linus, sun, mac and something else from the same bas file. It's not activex compatable but has a companent system of it's own following on from qbasic

    it works in byte code like java but the vm is build into the executable. the math is quite a bit slower but the gui runs the same and graphics... actually look a bit better (direct X and soon openGL support)

    It's not as functional or as powerful as VB6 but to recopile onto other platforms is a PLUS. even C can't do that with a GUI.

    Take a look

  21. #21
    Guest
    VMWare makes a 'fake' virtual machine in the operating system environment. It will actually call a post from your bios and everything just like it was a second os so nearly any operating system can be installed within it. However it is extremly slow by nature and unless you have 2x the memory I wouldnt even concider it. 128 mb of ram is the recommended amount of ram to run windows, and linux as well and if you go any lower than that you will face tremendous disk swapping. Well running two os's at once vmware gives you the option on how much memory you wish to give to the virtual environment but if you have 256 a 50 50 method is very efficient. As well VMWare can run windows in a linux environment but I have been unsuccessful multiple times to get vb to operate correctly in this environment it took nearly 30 minutes to compile a 1200 lines of code application. Thats pretty pathetic since in windows it only takes about 3 to 4 seconds to compile nearly 10,000 lines of code..But yes its possible to run windows applications 'in' linux. While in fact your running them in linux your really running them in windows in linux if that makes since. The overhead is tremendous and in order for this to work you must boot into linux..When linux is done booting you must Boot your virtual machine for windows and wait for windows to boot in that virtual machine as well..And then once that has booted you must run the application..

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