473,666 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JAVA Fork to C#?


Quick Intro: was thumbing through a book on Programming Windows in C#
and was wondering if I shouldnt fork my developement: I've written a
program in windows script, and now a more robust version in Java
(using eclipse). I've hit the wall - in that the UI portions of
eclipse are still manual - as VE (visual editor) is now 2 versions out
of date (and I subsequently can't get it to work - where it used to on
my code).

So I picked up a C# book and downloaded the MS Express C# and was
smitten by the ease of which I was able to implement some of the
functionality. I used to do MS Studio 6.0 and MFC but I can not for
the life of me see any reference to it (MFC) on the MS website - I
don't know what the official UI "foundation classes" are - there are
so many - is it Windows Forms? Or .Net or - anyhow - the meat of the
matter is:

Do you recommend C# for development (specifically for the windows
platform) or is good ol' C++ and "X" (X was MFC now its? - what does
the Word 2007 UI use?) I was relying heavily on Java to do heavy
lifting in data base areas, Regular expressions and the like. I was
smitten with Java+SWT but find Eclipse/SWT is developing at a snails
pace. I read the intro to a "Charles Petzold Programming Windows C#"
book at the book store and C# seems like a "better" java and "easier" C
++. I'd rather "fork" my project now that wait till I sit back and
admire a complete project and find that C# might have been the better
answer.

Wish list: A level of abstraction like Java (C#?), with the power to
create a snazzy program with MS Office 2007 UI elements. I'm willing
to brush up on C++ do do the work if need be - I'm just so confused
with what "windows" is programmed in these days. MFC was so hard at
first but powerful. I've seen windows forms, windows PFC, wxWidnows
and a myriad of other things referenced on the net. My audience
(should I get the gumption to release the program) will be mainly
windows. I don't plan on porting it to anything.

Be kind - I graduated from Comp SCI from USC when SOAP was what I took
a shower with and I drank JAVA to study on - and ... Al Gore was JUST
creating the internet... he hem. (1994) Thank your very much for your
time.

-Dave

P.S. (don't bring up Standford in your response....I'm still cross)
Oregon did well - they deserved the win!

Oct 30 '07 #1
5 1897
E2**********@gm ail.com wrote:
Quick Intro: was thumbing through a book on Programming Windows in C#
and was wondering if I shouldnt fork my developement: I've written a
program in windows script, and now a more robust version in Java
(using eclipse). I've hit the wall - in that the UI portions of
eclipse are still manual - as VE (visual editor) is now 2 versions out
of date (and I subsequently can't get it to work - where it used to on
my code).
Why not use NetBeans?
I'm all for switching to C# when it makes sense, but taking an existing
application and porting it to a new language generally involves
rewriting all of it.

I'm guessing that you aren't doing this for an organization, and it's
purely for your own use. If that's the case, it's definitely a good
thing to learn from if that's where your interest lies.

Honestly though, it seems like you have the perception that C# Java,
and in some cases it is, and in others it isn't. Just like most other
languages. It all depends on your use really. For GUI apps .NET works
pretty well.
Do you recommend C# for development (specifically for the windows
platform) or is good ol' C++ and "X" (X was MFC now its? - what does
the Word 2007 UI use?) I was relying heavily on Java to do heavy
lifting in data base areas, Regular expressions and the like. I was
smitten with Java+SWT but find Eclipse/SWT is developing at a snails
pace. I read the intro to a "Charles Petzold Programming Windows C#"
book at the book store and C# seems like a "better" java and "easier" C
++. I'd rather "fork" my project now that wait till I sit back and
admire a complete project and find that C# might have been the better
answer.
I don't really think there's often a "better answer" and language like
that is probably going to start a flamewar in most places. :P
Use whatever works for you. If you think C# will do all that you need to
better than Java, then why not give it a go and see for yourself?
Posting here is going to get you responses from a lot of people who have
probably not done a whole lot of work in both languages (given this is a
topical group).
Wish list: A level of abstraction like Java (C#?), with the power to
create a snazzy program with MS Office 2007 UI elements. I'm willing
What do you mean by "level of abstraction" exactly? Specifically, what
do you see Java doing that does a great job of abstracting, and compared
to what languages?

The snazzy UI elements are certainly there - ish. My one complaint with
..NET is the lack of consistency to the features in the controls. For
instance, in a DataGridView you have control over the column header
automatic sizing, but in a ListView in Details mode you don't. It seems
counterintuitiv e to me. There are specific little things like that which
I have to deal with daily. On the flipside, there weren't as many of
these kinds of consistency things, but rather more focus on optimizing
for speed because Swing isn't that fantastic on the speed.
Granted, I'm working on a fairly large application for the most part.
and a myriad of other things referenced on the net. My audience
(should I get the gumption to release the program) will be mainly
windows. I don't plan on porting it to anything.
Then certainly the main feature of Java (run anywhere there's a JVM,
which is basically everywhere) becomes useless to you.

Chris.
Oct 30 '07 #2
E2**********@gm ail.com wrote:
Quick Intro: was thumbing through a book on Programming Windows in C#
and was wondering if I shouldnt fork my developement: I've written a
program in windows script, and now a more robust version in Java
(using eclipse). I've hit the wall - in that the UI portions of
eclipse are still manual - as VE (visual editor) is now 2 versions out
of date (and I subsequently can't get it to work - where it used to on
my code).
I think it is only 1 version behind.

And the following unofficial port is said to work:
http://www.ehecht.com/eclipse_ve/ve.html
So I picked up a C# book and downloaded the MS Express C# and was
smitten by the ease of which I was able to implement some of the
functionality. I used to do MS Studio 6.0 and MFC but I can not for
the life of me see any reference to it (MFC) on the MS website - I
don't know what the official UI "foundation classes" are - there are
so many - is it Windows Forms? Or .Net or - anyhow - the meat of the
matter is:
Windows Forms or WPF.
Do you recommend C# for development (specifically for the windows
platform) or is good ol' C++ and "X" (X was MFC now its? - what does
the Word 2007 UI use?) I was relying heavily on Java to do heavy
lifting in data base areas, Regular expressions and the like. I was
smitten with Java+SWT but find Eclipse/SWT is developing at a snails
pace. I read the intro to a "Charles Petzold Programming Windows C#"
book at the book store and C# seems like a "better" java and "easier" C
++. I'd rather "fork" my project now that wait till I sit back and
admire a complete project and find that C# might have been the better
answer.
Almost anything is better than traditional X or Win32 GUI programming.
Wish list: A level of abstraction like Java (C#?), with the power to
create a snazzy program with MS Office 2007 UI elements. I'm willing
to brush up on C++ do do the work if need be - I'm just so confused
with what "windows" is programmed in these days. MFC was so hard at
first but powerful. I've seen windows forms, windows PFC, wxWidnows
and a myriad of other things referenced on the net. My audience
(should I get the gumption to release the program) will be mainly
windows. I don't plan on porting it to anything.
You can stick with Java or you can go for C# and .NET.

Depends on what you prefer (and to some extent how far you are
with the project).

Arne
Nov 1 '07 #3
Chris Shepherd wrote:
I'm all for switching to C# when it makes sense, but taking an existing
application and porting it to a new language generally involves
rewriting all of it.
It is often very easy to port Java to C#.

But SWT to Win Forms or WPF will be a rewrite from scratch.

Arne
Nov 1 '07 #4

If converting the whole project is not an option, then you can use
IKVM to convert the java bytecode for the business logic / data stuff
to .NET and then only rewrite the UI stuff.

Then you can gradually move the rest over to .NET as time allows.

http://www.ikvm.net/

IKVM is very impressive and works great for middleware/backend stuff
(not designed for UI).

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
>E2**********@g mail.com wrote:
>Quick Intro: was thumbing through a book on Programming Windows in C#
and was wondering if I shouldnt fork my developement: I've written a
program in windows script, and now a more robust version in Java
(using eclipse). I've hit the wall - in that the UI portions of
eclipse are still manual - as VE (visual editor) is now 2 versions out
of date (and I subsequently can't get it to work - where it used to on
my code).
Nov 1 '07 #5
Thanks you all for your comments.

1. The "level of abstraction" was to indicate that it feels nice to
say "JPanel().add(n ew Button("Press ME"))" than say - the 20 or so
lines of MFC code...
or any number of other Object manipulations inside Java I use (which
I'm sure exists in C#)

2. No flame war - please - I used to like Assembly Language (when I
programmed MFC code) so - don't go there!

3. Lastly the project I have is nowhere near complete. I must confess
that it is usable and saves me HOURS and HOURS of time but I do want
to press forward and C# seems to be the answer - I suppose I'm just so
OUT OF THE LOOP on all this stuff that I want a warm a fuzzy that C#
will do all that I want before "wasting" my time and realizing that VC+
+ might have been the better choice (and hunker down and learn to do
things....manua lly again). Again "manually" as in malloc(ing) and
newing and deleting and - Message mapping and - you get the idea?

4. The one thing I did use to like about MFC and VC++ was that it
produced AN executable that almost all windows could run - but alas -
even my old MFC program wouldn't run recently (after dusting off the
cobwebs on it) and had to download some old MFC DLL's off the net to
get it to turn over the engine again..(on XP). it was the 4.2 verisons
and I see MFC 8.0's running around. I just don't see that many folks
talking about it anymore... mostly folks talk about WPF and Forms....

5. Thanks for your pointers - as right now - I'm rudderless and
staring at all of this with "deer in the headlights."

-Dave

Nov 2 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
6587
by: BlackHawke | last post by:
Our program, game program Andromeda Online (www.andromedaonline.net) uses two programs- one to play the game, another to patch the game as updates come out. Players actually launch the updater which checks for fresh updates, then installs them, then launches the game client. We have begun our beta test, and would like to have the client open with a console window so that players can see exceptions that are thrown. How to do this seems to...
47
5138
by: Theatre Mgmt | last post by:
Sun project seeks to solve Java memory, execution issues http://story.news.yahoo.com/news?tmpl=story&u=/infoworld/20050325/tc_infoworld/58059&e=1&ncid= San Francisco (InfoWorld) - Sun Microsystems Laboratories (Sun Labs) is working on a research effort to address issues with the memory footprint, startup and execution times when running multiple Java applications concurrently. The Multi-Tasking Virtual Machine (MVM), developed as a...
11
2598
by: christopher diggins | last post by:
I am wondering if any can point me to any open-source library with program objects for C++ like there is in Java? I would like to be able to write things like MyProgram1 >> MyProgram2 >> Fork(MyProgram3, SomeFile); If not would this be something of interest to others? Thanks in advance,
47
329
by: Theatre Mgmt | last post by:
Sun project seeks to solve Java memory, execution issues http://story.news.yahoo.com/news?tmpl=story&u=/infoworld/20050325/tc_infoworld/58059&e=1&ncid= San Francisco (InfoWorld) - Sun Microsystems Laboratories (Sun Labs) is working on a research effort to address issues with the memory footprint, startup and execution times when running multiple Java applications concurrently. The Multi-Tasking Virtual Machine (MVM), developed as a...
0
8448
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.