Results 1 to 16 of 16

Thread: [RESOLVED] Gtk#

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved [RESOLVED] Gtk#

    Anyone tested it on Windows? If it gets buildt on a Linux machine, does it require the Windows user to have GTK# installed?



    If anyone care to test. I would be happy. Since this require you to test an exe, it is fine if you don't like to test it. But just as a note. The code inside this file is:

    Code:
     using System;
     using Gtk;
     
     public class GtkHelloWorld {
      
       public static void Main() {
         Application.Init();
     
         //Create the Window
         Window myWin = new Window("My first GTK# Application! ");
         myWin.Resize(200,200);
         
         //Create a label and put some text in it.     
         Label myLabel = new Label();
         myLabel.Text = "Hello World!!!!";
              
         //Add the label to the form     
         myWin.Add(myLabel);
         
         //Show Everything     
         myWin.ShowAll();
         
         Application.Run();   
       }
     }

    So not much danger inside. But I still can see if you don't dare. Well here it is.
    Attached Files Attached Files

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Gtk#

    "An exception 'System.IO.FileNotFoundException' has occured in windu1.exe"

  3. #3

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Gtk#

    Booooo....well, I guess there is no way then. Unless QT# can make it happen. Will have to see tomorrow if I can get it installed, but looked at it, and it looks like a pain in the ass...



    - ØØ -

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: [RESOLVED] Gtk#

    you're using hte Gtk namespace which doesnt really exist in ms' .NET
    maybe cuz of that?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [RESOLVED] Gtk#

    I can't actualy remember what C# uses for it's GUI. At school we didn't do much GUI at all. Just the language feautures. Have you tested if it is possible to use C# GUI feautures in VS on a linux box? I have heard that VS.NET 2003 outputs a fair bit of ASM code in their C# compilation, making it hard to use the app on other OSes. But VS.NET 2005 is much cleaner this way, but still not pure as it should.

    Would be interesting though to test a REALLY REALLY clean hello world app made in VS on my linux box. Anyone care to make a really clean one. Not add too much of the VS automatic inserted code into it? So I can test it here?

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [RESOLVED] Gtk#

    old GTK# tutorial I wrote. Compiled code ran on both Linux and windows

    http://www.planet-source-code.com/vb...1896&lngWId=10
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [RESOLVED] Gtk#

    Didn't know you where a mono user.....But doesn't this still require the Windows user to have GTK# installed on the target machine?



    - ØØ -

  8. #8
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [RESOLVED] Gtk#

    Well yeah of course they have to have GTK#.

    BTW here is a screenshot in this thread of it running on Gentoo
    http://www.vbforums.com/showthread.p...ghlight=gtk%23
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  9. #9

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [RESOLVED] Gtk#

    OK, but I guess this is resolved again then. So there is no know ways of making something GUI at ALL in Linux and expect it to run in Windows without installing stuff first, or the other way around. At least not for now.


    - ØØ -

  10. #10
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [RESOLVED] Gtk#

    .NET uses System.windows.forms namespace to handle GUI coding. But it is not part of the ECMA standard. Never the less Mono has been working on adding those namespaces nativly. I havent kept up with Mono much lately, but they may be very much farther on this now.

    Those features fell behind due to the fact the coldnt agree on how to handle it.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  11. #11
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [RESOLVED] Gtk#

    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  12. #12

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [RESOLVED] Gtk#

    Ahha...goody, so they have started, and it looks like they are going to finish it off in Version 1.2. And they are saying they are 9x% finished now. Well I only have a version 1.1.8.1 compiler now. But I at least managed to make a message box. Anyone care to test it out?



    Code:
    class MessageBoxHelloWorld
    {
         public static void Main()
         {
              System.Windows.Forms.MessageBox.Show("Hello, world!");
         }
    }
    Attached Files Attached Files

  13. #13
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [RESOLVED] Gtk#

    I would if I had access to a Linux box which i do not currently have. Havent gotten around to finsihing rebuilding my Linux box . Its a home sitting in pieces.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  14. #14

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [RESOLVED] Gtk#

    No no no....it is for windows. I made it in Linux.....Debian - Sarge, and I want a windows user to test it. You have to have the 1.0 Framwork though..



    - ØØ -

  15. #15
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [RESOLVED] Gtk#

    Runs fine on 1.1
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  16. #16

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [RESOLVED] Gtk#

    wooooohoooooo...thanks a bunch......So happy now. Now I can finaly make some GUI stuff for the geeks down here.. And script it with python. This will be so cool.

    I have bookmarked one of your posts so I can rate it later on, but I must have rated you lately, since I am not able too now...


    Thanks a billion, this thread is Canderizzzzed.
    - ØØ -

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