Shawn Curry
12-16-2002, 11:32 PM
This is another relatively undocumented thing that I wanted to do. But, after searching long and hard, I finally found the solution.
I know, people told you that you should run VB under Windows. Right tool for the right job?? Pffft!! I want to boot Windows as little as possible!
The steps I took:
1. Download wine (codeweavers 7) (http://wine.codeweavers.com/)
- I had a version of Wine pre-installed (RH 8); however, I couldn't get VB to run.
2. Install it (I had to try a couple times before I got it to install?)
3. Find the directory where the executable is, and set this in your path.(/opt/wine/bin for me)
4. Log in as a REGULAR USER.(it wont work if you're logged in as root or you are su)
- Note that you must have the wine path set for this user, unless you set it globally.
5. Run winesetup (follow the directions on the website)
- It should autodetect all the important stuff but there may be some things you want set (screensize, etc)
6. Change to the directory of the program you want to run, and use wine to run it.
- [shawn@localhost vb98]$wine vb6
7. Make a script!!
It is a little buggy, for example if I want to resize the form, I have to enter it numerically. Then again, there may be an option in Wine (manage windows... I'll have to give it a try). But all in all, it suits my needs. The only reason I'm using it is for my intro to programming class, and i'm not making any executables. If you seriously want to program with VB, I seriously reccommend you use something else. Qt designer feels a lot like VB(property editor, etc), and if you stick to the Qt widgets, you can get your program to run under Linux AND Windows (there is a free Qt library for Windows). The difference is that Qt is C++, and it's got better standard documentation.(My VB doesnt have ANY help files... go figure).
Good Luck!
I know, people told you that you should run VB under Windows. Right tool for the right job?? Pffft!! I want to boot Windows as little as possible!
The steps I took:
1. Download wine (codeweavers 7) (http://wine.codeweavers.com/)
- I had a version of Wine pre-installed (RH 8); however, I couldn't get VB to run.
2. Install it (I had to try a couple times before I got it to install?)
3. Find the directory where the executable is, and set this in your path.(/opt/wine/bin for me)
4. Log in as a REGULAR USER.(it wont work if you're logged in as root or you are su)
- Note that you must have the wine path set for this user, unless you set it globally.
5. Run winesetup (follow the directions on the website)
- It should autodetect all the important stuff but there may be some things you want set (screensize, etc)
6. Change to the directory of the program you want to run, and use wine to run it.
- [shawn@localhost vb98]$wine vb6
7. Make a script!!
It is a little buggy, for example if I want to resize the form, I have to enter it numerically. Then again, there may be an option in Wine (manage windows... I'll have to give it a try). But all in all, it suits my needs. The only reason I'm using it is for my intro to programming class, and i'm not making any executables. If you seriously want to program with VB, I seriously reccommend you use something else. Qt designer feels a lot like VB(property editor, etc), and if you stick to the Qt widgets, you can get your program to run under Linux AND Windows (there is a free Qt library for Windows). The difference is that Qt is C++, and it's got better standard documentation.(My VB doesnt have ANY help files... go figure).
Good Luck!