[Mono-list] C typedef to C#

Everaldo Canuto everaldo.canuto@bol.com.br
Mon, 09 Sep 2002 19:36:27 -0300


Adam,

I using: "using XID = System.UInt64;" and it functioned very well.
Thanks for your help and sorry by my english.



Everaldo Canuto wrote:

> Quer ter seu próprio endereço na Internet?
> Garanta já o seu e ainda ganhe cinco e-mails personalizados.
> DomíniosBOL - http://dominios.bol.com.br
>
> I'm have a experience on this, I'm using and implement fpGUI. 
> (http://www.freepascal.org/fpgui/index.html) and my idea is create a 
> similar library in C#.
> Another similar toolkit is FOX (http://www.fox-toolkit.org/fox.html), 
> FOX as developed in C++ and your apparence is like a Windows.
>
> My main purpose is developing a toolkit independent of GTK and QT.
> When I will have something functional, I leave a version here.
>
>> After thinking about this... Surely, you are not interested in 
>> programming Systems.Windows.Forms directly in X11!!  I don't have any 
>> specific experience with programming X11, but from all that I've 
>> heard, I count that as a Good Thing^TM :-)
>>
>> I don't want to discourage you to much, but why?
>>
>> Adam
>>
>> On Monday 09 September 2002 05:01 pm, Adam Treat wrote:
>>  
>>
>>> Hmm.  I wonder if you are really intent upon doing this wouldn't be 
>>> easier
>>> to reimplement X11 in C#.  Similar to this for java:
>>> http://escher.sourceforge.net/
>>>
>>> BTW, have you had a look at Qt#? ;-)
>>>
>>> Adam
>>>
>>> On Monday 09 September 2002 04:34 pm, Everaldo Canuto wrote:
>>>   
>>>
>>>> I'm interest on create a classes to develop applications on XWindow
>>>> System. A solution would be to use the GTK#,  but I dont like GTK and I
>>>> have a idea to create System.Windows.Form classes with direct access to
>>>> XWindow API.
>>>>
>>>> Theres another possibilitys to access XWindow API on mono?
>>>>
>>>> adam treat wrote:
>>>>     
>>>>
>>>>> Quer ter seu próprio endereço na Internet?
>>>>> Garanta já o seu e ainda ganhe cinco e-mails personalizados.
>>>>> DomíniosBOL - http://dominios.bol.com.br
>>>>>
>>>>> Here is another possibility.  I'm not exactly sure what you mean by
>>>>> 'converting X11 header files to Mono' but perhaps this will help:
>>>>>
>>>>> using XID = System.UInt64;
>>>>> using Window = System.UInt64;
>>>>> public class Foo
>>>>> {
>>>>> }
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Adam
>>>>>
>>>>> --- adam treat <manyoso@yahoo.com> wrote:
>>>>>       
>>>>>
>>>>>> --- Everaldo Canuto <everaldo.canuto@bol.com.br> wrote:
>>>>>>         
>>>>>>
>>>>>>> I 'm working on convert X11 header files to Mono, but I have one
>>>>>>> problem, how to convert C typedef instruction into C#.
>>>>>>>
>>>>>>> Example:
>>>>>>> typedef unsigned long XID;
>>>>>>> typedef XID Window;
>>>>>>>
>>>>>>> I  using "public struct XID uint {}", but generate a compiler error.
>>>>>>>           
>>>>>>
>>>>>> That's not going to work.  This is the correct syntax: "public struct
>>>>>> XID
>>>>>>
>>>>>> : System.UInt64 {}", but
>>>>>>
>>>>>> that won't work either.  Structs can not inherit.  Actually, they
>>>>>> inherit from System.Object, but
>>>>>> they _cannot_ inherit from any other type.
>>>>>>
>>>>>>         
>>>>>>
>>>>>>> Sorry by my english, I'm from Brazil
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mono-list maillist  -  Mono-list@ximian.com
>>>>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>>>>           
>>>>>>
>>>>>> __________________________________________________
>>>>>> Do You Yahoo!?
>>>>>> Yahoo! Finance - Get real-time stock quotes
>>>>>> http://finance.yahoo.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mono-list maillist  -  Mono-list@ximian.com
>>>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>>>         
>>>>>
>>>>> __________________________________________________
>>>>> Do You Yahoo!?
>>>>> Yahoo! Finance - Get real-time stock quotes
>>>>> http://finance.yahoo.com
>>>>>       
>>>>
>>>> _______________________________________________
>>>> Mono-list maillist  -  Mono-list@ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>     
>>>
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list@ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>   
>>
>>
>>
>>
>>  
>>
>
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>