[Mono-winforms-list] newbie - MoMA

Diego Frata diego.frata at gmail.com
Tue Jan 5 10:46:47 EST 2010


I've implemented a SettingsReader class for this kind of configuration file
without the need of windows APIs.

It should work for you...

It's attached on the e-mail.


Diego Frata
diego.frata at gmail.com


On Tue, Jan 5, 2010 at 10:42 AM, Stifu <stifu at free.fr> wrote:

>
>
>
> newbiemono wrote:
> >
> >
> >
> > Stifu wrote:
> >>
> >>
> >>
> >> newbiemono wrote:
> >>>
> >>>
> >>>
> >>> Stifu wrote:
> >>>>
> >>>>
> >>>>
> >>>> newbiemono wrote:
> >>>>>
> >>>>> Hello All,
> >>>>>
> >>>>> I am very new to mono, I have downloaded trial version of mono tools
> >>>>> for VS, when I run from Tools -> MoMA .. I got the following
> warnings:
> >>>>>
> >>>>> Warning   2       The method void
> SerialPort.set_ReceivedBytesThreshold(int)
> >>>>> could potentially throw a NotImplementedException in Mono.
> >>>>> C:\Project\Matrix .NET\Billing\NetComm\FrmTest.cs 138     18
>  NetComm
> >>>>>
> >>>>> Warning   4       P/Invoke: Native library 'kernel32' called.  Ensure
> this
> >>>>> library is cross platform.
> >>>>> C:\Project\Matrix .NET\Billing\NetComm\ClsIni.cs  36      8
> NetComm
> >>>>>
> >>>>> Warning   5       P/Invoke: Native library 'user32.dll' called.
>  Ensure this
> >>>>> library is cross platform.        C:\Project\Matrix
> >>>>> .NET\Billing\NetComm\SystemMenuManager.cs 135     18      NetComm
> >>>>>
> >>>>>
> >>>>> What should I do? for being my app ported to Linux?
> >>>>>
> >>>>>
> >>>>
> >>>> Hey,
> >>>>
> >>>> Warning 2: just try your app with Mono to see whether it throws a
> >>>> NotImplementedException, since the message implies it might not. You
> >>>> can do so from Windows.
> >>>>
> >>>> Warning 4 and 5: You need to replace your calls to kernel32 and user32
> >>>> DLLs to managed equivalents (ideally), that is to say using classes
> >>>> available in the .NET framework, or using external libraries that are
> >>>> fully managed.
> >>>>
> >>>
> >>> Noted with thanks, Warning 4 & 5, do you have any idea for this? .. I
> >>> dont know what's replacement for those .DLLs on Linux..
> >>>
> >>>
> >>>
> >>>
> >>
> >> It depends on what you use from these DLLs. I expect them to have many
> >> methods, so it'd help to know which methods you're using.
> >>
> >
> > Kernel32 --> I use it for read/write .ini file (see below)
> >
> >  [DllImport("kernel32")]
> >     private static extern long WritePrivateProfileString(string section,
> >       string key,string val,string filePath);
> >
> >     [DllImport("kernel32")]
> >     private static extern int GetPrivateProfileString(string section,
> >       string key,string def, StringBuilder retVal,
> >       int size,string filePath);
> >
> >
> > I am blank with this ...;<( ..
> >
> >
>
> So it's just text, right?
>
> I guess this should work then:
> http://msdn.microsoft.com/en-us/library/db5x7c0d.aspx
> http://msdn.microsoft.com/en-us/library/6ka1wd3w.aspx
> --
> View this message in context:
> http://old.nabble.com/newbie---MoMA-tp27023946p27026600.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20100105/79b1350e/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SettingsReader.cs
Type: application/octet-stream
Size: 3016 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20100105/79b1350e/attachment.obj 


More information about the Mono-winforms-list mailing list