C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VS .NET 2005 and forms

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
blangela
Guest





PostPosted: Thu Nov 16, 2006 4:10 am    Post subject: VS .NET 2005 and forms Reply with quote



{ This seems to be marginally off-topic for [environment-specific];
let's try to stay on topic by not going into environment-specific
details but stating what's related to the standard C++ and what's not.
-mod }

If I want to take advantage of the "forms" capability of .NET 2005 and
I want to program in C++, am I required to use the "managed" C++ ? I am
referring to the same "forms" capability as is available to C#
programmers.

Also, can some one explain to me the difference between managed C++ and
regular C++ (ANSII compliant) ? Perhaps point me to a good link and/or
article on the web.

Thanks,

Bob


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Alf P. Steinbach
Guest





PostPosted: Thu Nov 16, 2006 8:21 am    Post subject: Re: VS .NET 2005 and forms Reply with quote



* blangela:
Quote:
{ This seems to be marginally off-topic for [environment-specific];
let's try to stay on topic by not going into environment-specific
details but stating what's related to the standard C++ and what's not.
-mod }

If I want to take advantage of the "forms" capability of .NET 2005 and
I want to program in C++, am I required to use the "managed" C++ ?

No. Just about anything can be done in pure C++. It's a question of
practicality, though: by using a language specifically tailored to an
environment (and "managed" C++, as well as C++/CLI, are effectively
different different languages with about the same relationship to C++ as
C++ has to C) much is automated for you, and safety nets are in place.

However, instead of using a niche language like those two supersets of
C++ are, consider using a language dedicated -- not just tailored --
to the environment, for those tasks that are environment-specific.

Then use ordinary C++ for integration with more conventional
environments such as the OS API.


[snip]
Quote:
Also, can some one explain to me the difference between managed C++ and
regular C++ (ANSII compliant) ? Perhaps point me to a good link and/or
article on the web.

<url: http://www.google.com/search?q=wikipedia+managed+c%2B%2B>.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Michael Olea
Guest





PostPosted: Fri Nov 17, 2006 12:13 am    Post subject: Re: VS .NET 2005 and forms Reply with quote



Gerhard Menzl wrote:

Quote:
Alf P. Steinbach wrote:

No. Just about anything can be done in pure C++. It's a question of
practicality, though: by using a language specifically tailored to an
environment (and "managed" C++, as well as C++/CLI, are effectively
different different languages with about the same relationship to C++
as C++ has to C) much is automated for you, and safety nets are in
place.

However, instead of using a niche language like those two supersets of
C++ are, consider using a language dedicated -- not just tailored
-- to the environment, for those tasks that are environment-specific.

Then use ordinary C++ for integration with more conventional
environments such as the OS API.

I don't think this is good advice. Easier integration of standard C++
code is one of the prime reasons to prefer C++/CLI over other .NET
languages.

There is an alternative: "Domain Specific Embedded Languages". See chapters
10 and 11 of "C++ Template Metaprogramming".

--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Alf P. Steinbach
Guest





PostPosted: Fri Nov 17, 2006 10:10 am    Post subject: Re: VS .NET 2005 and forms Reply with quote

* Gerhard Menzl:
Quote:
Alf P. Steinbach wrote:

No. Just about anything can be done in pure C++. It's a question of
practicality, though: by using a language specifically tailored to an
environment (and "managed" C++, as well as C++/CLI, are effectively
different different languages with about the same relationship to C++
as C++ has to C) much is automated for you, and safety nets are in
place.

However, instead of using a niche language like those two supersets of
C++ are, consider using a language dedicated -- not just tailored
-- to the environment, for those tasks that are environment-specific.

Then use ordinary C++ for integration with more conventional
environments such as the OS API.


I don't think this is good advice. Easier integration of standard C++
code is one of the prime reasons to prefer C++/CLI over other .NET
languages.

The time when development in just language, i.e. doing all (whatever the
task) in C++, is over, I think. In general. Using special purpose
variants of C++ in order to keep it all one language is probably futile.
But there may still be environments where one does not have a choice.
Anyway, for the concrete environment discussed here it's not difficult
to integrate existing traditional C++ code into new environment-specific
code written in environment-specific language(s).

It's easy to forget that C++ is designed for a specific class of
environments. But one wouldn't (normally) use some specially tweaked
variant of C++ to program for e.g. the Java virtual machine. Then why
should one do that for an almost identical other virtual machine?

It may make political sense (we've invested much in this new development
software from the vendor so we gotta use it all, and we don't want to
appear backwards not knowing much about what, according to the hype,
everybody else use), but IMHO it doesn't make much engineering sense.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Gerhard Menzl
Guest





PostPosted: Fri Nov 17, 2006 10:10 am    Post subject: Re: VS .NET 2005 and forms Reply with quote

Michael Olea wrote:

Quote:
I don't think this is good advice. Easier integration of standard C++
code is one of the prime reasons to prefer C++/CLI over other .NET
languages.

There is an alternative: "Domain Specific Embedded Languages". See
chapters 10 and 11 of "C++ Template Metaprogramming".

I don't have this book at my disposal, but I would be curious to learn
in what way template metaprogramming is relevant in this context. Could
you elaborate?


--
Gerhard Menzl

Non-spammers may respond to my email address, which is composed of my
full name, separated by a dot, followed by at, followed by "fwz",
followed by a dot, followed by "aero".



[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.