[Pkg-mono-devel] Substitute for GetUpdateRect in linux mono

Jo Shields directhex at apebox.org
Wed Nov 23 13:25:30 UTC 2016



On 23/11/16 10:41, JimH44 wrote:
> Hello,
> 
> I am trying to port an excellent open source Windows Forms program, Ketarin,
> to Linux (Lubuntu 16.04.1). It is in C# and I'm using MonoDevelop on the
> Linux system.
> The program compiles without errors, but then throws an exception at
> run-time concerning NativeMethods.GetUpdateRect
> 
> With help from people at StackOverflow I have been able to modify the code
> to compile with the correct case for names of SQLite methods, so I asked
> there again about GetUpdateRect:
> http://stackoverflow.com/questions/40713855/how-to-use-nativemethods-getupdaterect-on-mono-on-lubuntu-16-04-1
> <http://stackoverflow.com/questions/40713855/how-to-use-nativemethods-getupdaterect-on-mono-on-lubuntu-16-04-1>  
> but have not received any response after several days.
> 
> Can anyone suggest how I could achieve the same effect using packages or
> assemblies available in Lubuntu, depending on .so files instead of .dll
> files?

https://github.com/GitSullied/Ketarin/blob/master/Scintilla/NativeMethods.cs#L29-L30

https://en.wikipedia.org/wiki/Microsoft_Windows_library_files#USER32.DLL

You might struggle a bit here. You're working with deeply Windows-based
code.

You might have more luck rewriting what the code is trying to do, than
finding a replacement to that one piece of its inner working.



More information about the Pkg-mono-devel mailing list