[Mono-winforms-list] newbie - MoMA
Stifu
stifu at free.fr
Tue Jan 5 07:42:45 EST 2010
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.
More information about the Mono-winforms-list
mailing list