VC++ vs C# Windows Forms Performance

  • Thread starter Thread starter Guest
  • Start date Start date
Greg said:
Is Windows Forms in C++ better performance than Windows Forms in C#?

It is the rare UI that cries out for high performance as the gating item is
probably the response time of the human at the keyboard.

If you have the odd application you might want to profile it but as both
languages compile to MSIL it is hard to imagine that it will make that big a
difference. To be fair, I do think that the MC++ compiler does more
optimization but again, I doubt it will amount to much.

In my opinion, you should use the language that makes the most sense for
other reasons.

Regards,
Will
 
Greg said:
Maybe I should just use C# for the GUI and C++
for that background app.

Well I guess it will depend a lot on what the background application does
and the language you are comfortable with. If it has much interaction with
existing managed APIs I'd cast it in C++.
However, I like to stay with one language and
it seems that C++ is the most flexible.

It is certainly the more "all purpose" language.
I know the performance difference is not a GUI issue
but I figure all things being equal if C++ has a bit
better performance then might as well go with it.

That's reasonable.
Do you recommend C# over C++ for GUI?
Then call C++ from C# if needed?

You had to ask. :-)

"As simple as possible but no simpler" is often a good strategy. On that
basis I had been recommending C# for strictly .Net tasks like using
WinForms. But recently I have had a peek at the future. I can't say more
than that except that if you stick with MC++ long enough, it think it will
make you happy. :-)
Isn't it easier to call unmanaged code from C++ than C#?

This is where managed C++ shines. You can simply have managed and unmanaged
functions in the same module and make calls back and forth without thinking
about it.
It just seems that C++ is the most felxible and powerful all-around.

Yes, it is.

Regards,
Will
 
William,

I'm hoping your peek included a VC++ forms designer, object properties,
events, etc. Thats the only thing chaining me to C# right now. As an old
school VC++'er I was disappointed in the lack of equivalent .NET IDE support
for us C++ folks. Obviously being able to leverage the capabilities of
managed/unmanaged code side by side in addition to a sold form designer all
in VC++ would put me in the sweet spot!

Erin.
 
EMonaco said:
I'm hoping your peek included a VC++ forms designer, object properties,
events, etc. Thats the only thing chaining me to C# right now.

I should tell you that I'm not expert at the things you mentioned. But, do
you have the 2003 edition of VS? It has a forms designer which allows you to
drag UI components off the toolbox and onto a form. That was missing in the
2002 version. Or is it some other cool thing that C# has that you miss?
As an old school VC++'er I was disappointed in the
lack of equivalent .NET IDE support for us C++ folks.

Well, you are not alone in that feeling. And as I understand it, this
message has been heard loud and clear and the push is on to improve MC++. I
believe this link spills some of the beans abou what is coming in "Whidbey":

http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032247923&Culture=en-US

Regards,
Will
 
Back
Top