C# in Linux - mono

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

C# in Linux - mono

 
0
  #1
Sep 17th, 2008
We're trying to get our C# program to work on linux. We just loaded into Mono, and it compiles fine but the form doesn't appear. Anyone know what? Does it have something to do with it being a "windows form"?
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: C# in Linux - mono

 
0
  #2
Sep 17th, 2008
I have gotten Windows Forms to work under mono before.

Are you using any of the winapi as well?

Take a look at the mono migration analyzer, it should most likely tell you what could be wrong.

http://www.mono-project.com/MoMA
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: C# in Linux - mono

 
0
  #3
Sep 17th, 2008
Have you confirmed mono is actually working first?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: C# in Linux - mono

 
0
  #4
Sep 17th, 2008
yes mono is working.
I ran the app through MoMa and it said something about one of our methods not being supported but no big deal. Just a simple cursor_clip.

But we still get compile errors that don't show up in MoMa. It has something to do with the program using system.

Here's our code if anyone with linux experience gets a chance to try it in mono.
Attached Files
File Type: zip Anassa-Csharp-v1.0.zip (155.1 KB, 4 views)
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: C# in Linux - mono

 
0
  #5
Sep 17th, 2008
Compile errors?

I thought your first post said you didn't get any compile errors. Are you getting any error or just the form doesn't show up?
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: C# in Linux - mono

 
0
  #6
Sep 17th, 2008
now we're getting compile errors for some reason. I don't know why
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: C# in Linux - mono

 
0
  #7
Sep 17th, 2008
Feel free to post the errors if you need assistance with them.

Once it is all straightened out with them, let me know what the result is on mono.
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: C# in Linux - mono

 
0
  #8
Sep 17th, 2008
I get two parsing errors (CS8025).
Last edited by Duki; Sep 17th, 2008 at 4:23 pm.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: C# in Linux - mono

 
0
  #9
Sep 17th, 2008
Whats the text that goes with? Whats the lines it barfs on?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: C# in Linux - mono

 
0
  #10
Sep 17th, 2008
They're both on Line 1
  1. Using System

It says one is associated with Form1.resx and the other is Resources.resx
Last edited by Duki; Sep 17th, 2008 at 4:29 pm.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC