|
Hi, we have a requirement to develop an User Interface which should be able to deploy in Linux as well as Windows XP/7. Please can you help me in with some tips.
|
|
|
|
|
Use MonoDevelop and write the UI GTK#, which is compatible in both Windows and Linux.
Also, use good MVC or other UI separation models.
|
|
|
|
|
WinForms is also compatible with both Windows and Linux, and a bit more widely known.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Did you eve seen WinForm on linux?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).
|
|
|
|
|
|
Of course. I asked if you ever seen it. It looks terrible...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: Did you eve seen WinForm on linux? Yes, I'm actively programming in it. It looks just like WinForms, but then how it'd look under OpenSUSE.
You might find it ugly, I say it's a recognizable UI with a low learning curve. And a uniform UI, across platforms. No obscure swiping-gestures or hidden charms.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Does it have to be desktop? Are there any features you can't get on a web app? If not, you could easily develop a browser based application that meets your needs.
|
|
|
|
|
An HTML and Javascript interface could do.
|
|
|
|
|
you can use HTML 5 offline apps.
Regards,
Amit
|
|
|
|
|
That really depends on what browser is installed/available. If it's XP, there's no guarantee that the user has a decent browser installed.
More importantly, there is no guarantee here that HTML offline apps is solving a problem that the user has raised. It's always important to find out what the actual problem is before jumping in with a technology that is supposed to fix it.
|
|
|
|
|
Thanks Pete for pointing that out,
I only suggested HTML 5 Offline apps, its upto the user what he sees as fitting in his scenario. There are always some kind of limitations with every software, like for windows app, .Net framework needs to be installed, so it is always a selection on software/hardware.
I agree it could break somewhere when the browser is old, but for that simple HTML 4 with AngularJs can be used for developing offline apps.
Nothing offending
Regards,
Amit
|
|
|
|
|
I just can't seem to get this right.
I have a Com Class written in VB.Net that brings up a form where users can enter information.
I have a delphi program that opens this class and it shows the form fine.
The problem I have is with events raised in the Com Class. It just does not get fired in delphi, although I can assign it to a procedure.
Has anybody managed to do this?
|
|
|
|
|
Yes[^].Peter van Ooijen wrote: Consuming COM events in a Delphi client is far more complicated.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks for the link. Will give it a try today.
|
|
|
|
|
hello,I want a code on get pixel from scanned image and want to read that pixel to find whether it is black or white..thank you
|
|
|
|
|
|
Bitmap has a GetPixel function returning the color of that pixel:
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(...);
System.Drawing.Color color = bitmap.GetPixel(42, 42);
|
|
|
|
|
If you're going to look at more than a very small number of pixels, you do not want to use GetPixel .
It is very slow!
See these CodeProject search results[^] for better ways to do this!
|
|
|
|
|
|
Hi All,
I have been searching to understand how generations work in .Net Memory management. It has been still a difficult interview question for .Net developers as most of the times we don't have to worry about how Memory Management is handled in .Net internally.
For example if I am running a large scale application then I have a question like in scenario 1. there are 5 objects in Generation 1 and 50 objects in generation 2 and in scenario 2. there are 50 objects in Generation 1 and 5 objects in generation 2 (thinking that generations don't start from 0, they will start from 1), in above two scenarios which scenario would have more performance, and the reason why it will have more performance than the other one.
Any kind of link to answer the above question and any kind of help to understand the generations perfectly and how to use it in achieving the higher performance in our applications is greatly thankful.
Even though it is easy to not worry about memory management in .Net, still I want to understand if I need to handle memory management in .Net managed code what is the best way to do. Please help by enlightening me with this very basic but very complex and important answer.
Thanks a lot in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
If you want to understand .NET in more depth (including memory management), there's really only one person to go to. Jeffrey Richter really is "da man" in this space - I would start with this[^] book if I were you.
|
|
|
|
|
Hi Abdul,
The answer to your question is that scenario 1 will be more faster, as there are very few elements in Gen 1 than Gen 2, as the frequency of lower generations garbage collection is more than higher one, even the top 1 which is Gen 2, and if we have few elements in Gen 1 then it will be easier and quicker for GC to complete.
BUT, if we consider memory management here and suppose as you mentioned yours is the scalable application then if for each session/user 50 objects are kept in Gen 2, then your 1st scenario will perform slow. Also in that case for new memory request which will occur when any new user will connect then in need of memory GC has to rerun very frequently.
so both the cases have their own pros and cons.
Gen 2 GCs are also considered to be slower.
I will send you more appropriate article for all this stuff.
Regards,
Amit Kumar
|
|
|
|
|
Thanks Amit, the answer you gave me also gives good information. But stillI am looking forward to get that article or link.
Thanks once again.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Amit, I'd suggest you go to your Code Project account settings and change "Your Display Name" NOT to be your email address.
This is just inviting spam to that email address.
Code Project is very good about keeping your email address hidden for just that reason.
|
|
|
|