|
-
Apr 3rd, 2007, 10:47 AM
#1
VB on Linux
I'd like to hear if anyone has any Visual Basic apps running on Linux using Mono. I'd be curious to see app screen shots, code, and info on what issues you had.
Brad!
-
Apr 3rd, 2007, 11:33 AM
#2
Re: VB on Linux
Yeah I have. I'm preparing a tutorial anyway. I'll post it in a day or two.
I don't live here any more.
-
Apr 3rd, 2007, 07:05 PM
#3
Re: VB on Linux
I don't have any screen shots right now, but the biggest issue by far that I have seen is that sometimes programmers will do something in a windows-specific way when an alternative exists, usually because it's easier.
The first example that jumps to mind is dealing with file paths -- if you write some code (C#) like:
Code:
new FileStream("SomeFolder\\data.xml");
// or
path = this_path + @"\" + "data.xml";
this is going to cause a problem running under Linux, where the '/' character is used to separate directories. Appropriate code would be:
Code:
path = Path.Combine(this_path, "data.xml");
// or
path = this_path + Path.DirectorySeparatorChar + "data.xml"
// etc.
Another issue is that file names under *nix systems are case sensitive. The files 'README' 'ReadMe' and 'readme' can all coexist in the same directory. So if a programmer refers to a file as "MyFile.txt" once and "myfile.txt" later, strange behavior will occur.
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
-
Apr 4th, 2007, 04:10 AM
#4
Re: VB on Linux
Ubuntu users should avoid the mono package from repo and instead use the Linux Installer for x86 from this page .This installs the latest package from mono.
Also useful is the Mono Analyzer tool that finds out porting issues with your project.
Applications built using gtk# on Linux require the gtksharp runtime to run under windows.
The monodevelop IDE is pretty much easy to use and easily converts VS.2003 projects to VS.2005 but the widgets were a bit buggy esp. the way they required containers to be added first.
ps:waiting anxiously for woss's tuto's.
__________________
________________0îîî___
___îîî0________(___)____
__(___)_________) _/_____
___\_ (_________(_/______
____\_)_________________
-
Jun 12th, 2007, 03:33 AM
#5
Re: VB on Linux
If you're doing .NET development on linux, try to stay away from using the System.Windows.Forms namespace. It has less support on mono and there are plenty of better alternatives, GTK# coming to mind here. It's got a different style to the SWF way of creating a GUI, but that's half the fun in learning something new
-
Jun 12th, 2007, 08:20 AM
#6
Re: VB on Linux
 Originally Posted by tr333
If you're doing .NET development on linux, try to stay away from using the System.Windows.Forms namespace. It has less support on mono and there are plenty of better alternatives, GTK# coming to mind here. It's got a different style to the SWF way of creating a GUI, but that's half the fun in learning something new 
What does this do if you want to create IL that will run on both windows and linux? Wouldn't it be best to stick to .NET Framework classes if you want cross platform compatability?
-
Jun 12th, 2007, 11:55 AM
#7
Re: VB on Linux
You can get GTK for Windows.
I don't live here any more.
-
Jun 12th, 2007, 01:54 PM
#8
Re: VB on Linux
 Originally Posted by brad jones
What does this do if you want to create IL that will run on both windows and linux? Wouldn't it be best to stick to .NET Framework classes if you want cross platform compatability?
You can download GTK# for Windows.
EDIT: These apps aren't written in .NET, but Pidgin and Gimp both use Gtk on their windows versions.
Last edited by tr333; Jun 12th, 2007 at 01:59 PM.
-
Aug 16th, 2007, 06:42 PM
#9
Hyperactive Member
Re: VB on Linux
I just installed mono on my mac, how do I create apps?
-
Aug 16th, 2007, 10:21 PM
#10
Re: VB on Linux
 Originally Posted by xxarmoxx
I just installed mono on my mac, how do I create apps?
You might find an IDE for C# on OSX if you search google, but I never bothered to look. Compile your code for .NET1.1 with the "mcs" (C#) or "mbas" (VB) cmdline programs. Use the "gmcs" program for compiling .NET2.0 code. Then create a .app file for your program with the "macpack" utility.
Mono:OSX
Last edited by tr333; Aug 16th, 2007 at 10:28 PM.
-
Aug 16th, 2007, 10:30 PM
#11
Re: VB on Linux
Mono Migration Analyzer - A tool to help you identify issues when porting .NET apps to Mono.
Guide: Porting Winforms Applications - A guide on porting Winforms apps to Mono.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|