#.NET and C++.NET

C

Carl Daniel [VC++ MVP]

Eric said:
what's difference between visual studio C#.NET and visual
studio C++.NET

The language. C# and C++ are different, but in many ways similar,
languages. Visual Studio itself is the same regardless of which language is
being used.

-cd
 
G

Gerhard Menzl

Carl said:
C# and C++ are different, but in many ways similar, languages.
Visual Studio itself is the same regardless of which language is
being used.

I beg to disagree on both counts.

1. The similarities of C# and C++ are superficial at best. While C#
syntax may look familiar to a C++ programmer, the underlying paradigms
and design philosophies of the languages are totally different.

2. A few days using Visual Studio .NET will quickly show that C# is the
home team. Example code is often available in C# but not in C++. Windows
Forms Designer support for C++ was absent from the initial release and
retrofitted in version 2003. The resulting rough edges put C++
programmers at a clear disadvantage. If you don't agree, try to add
toolbox support for a custom control in C++ as described in
http://thecodeproject.com/cs/miscctrl/DividerPanel.asp for C#.

Gerhard Menzl
 
B

Brandon Bray [MSFT]

Gerhard said:
2. A few days using Visual Studio .NET will quickly show that C# is the
home team. Example code is often available in C# but not in C++. Windows
Forms Designer support for C++ was absent from the initial release and
retrofitted in version 2003. The resulting rough edges put C++
programmers at a clear disadvantage.

Hi Gerhard,
I certainly understand your position, but I would say your first point
helps to explain why this is the situation. I do not concur with the
position that C# is preferred over C++. In fact, C++ is widely used and is
solving problems for .NET programming that C# is not. In short, C# and C++
are different languages with entirely different design goals. Microsoft
believes that developers should have a choice and be allowed to use a
language that serves their needs best.

Fundamentally, it is important to observe that C# and C++ have completely
different build models (whole program verses seperate compilation). That
makes it very difficult to solve a problem in C# and then just magically
make it available to C++ (and the reverse shows the same difficulty).

In the end, I do think that there is tremendous support for C++ at
Microsoft. Between C# and C++, we are solving problems for different
customer sets.

Cheerio!
 
G

Gerhard Menzl

Brandon said:
I certainly understand your position, but I would say your first point
helps to explain why this is the situation. I do not concur with the
position that C# is preferred over C++. In fact, C++ is widely used
and is solving problems for .NET programming that C# is not. In short,
C# and C++ are different languages with entirely different design
goals. Microsoft believes that developers should have a choice and be
allowed to use a language that serves their needs best.

Fundamentally, it is important to observe that C# and C++ have
completely different build models (whole program verses seperate
compilation). That makes it very difficult to solve a problem in C#
and then just magically make it available to C++ (and the reverse
shows the same difficulty).

None of the above can justify the shaky C++ support in Windows Forms. Up
until now, nobody has been able to explain to me how to make custom
controls written in C++ available via the toolbar.

From my Windows programming experience, which reaches back twelve years
to Windows 3.0, I can say that hardly a serious application will get by
without customizing standard controls by overriding part of their
behaviour. If something that is everyday work for a Windows programmer
turns out to be exceedingly difficult and results in helpful messages
like "Exception from HRESULT: 0x8005050A", then Microsoft's commitment
to supporting Windows programming in C++ can indeed be questioned.

That said, can you (or anyone else on your team) point me to information
that might help me to achieve such a basic task?

Gerhard Menzl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top