473,372 Members | 989 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

VC++.NET ????

Hi folks,

I am using vs.net 2003 for a time, however since last week I was
using MFC. Now, I am into managed C++ and windows forms.

I can say that I am very much confused with it, and I have some
questions I hope I can find some answers here...

1. First of all, I got the answer to this question but I have to
point that out! What kind of c++ programming is that to write all the
code in the header file ??? MS annnounced that it didn't market a new
product after vs6 for a long time coz they were working on vs.net ???
and now they say that the c++ win froms was designed by c# people
because there wasn't enough time???? Who would buy this ???

2. Ok, the first thing that I noticed with vc++.net is that It
compliles and complies and compiles ... I would have compiled 5
projects in MFC and my vc++.net code still compiles... Is there a
reason for this ????

3. And my other major question, I am also a vb programmer since vb5
and when I have upgraded from vb6 to vb.net I was really charmed with
the features of vb.net. Does all the namespace functions work the
same speed for all languages?? For example if I code the same project
with c++.net or vb.net or c# using namespaces and managed code would
all work at the same speed coz they all use the same shared
namespaces??? This is my concern till I started to code in vc++.net.
If it is the case why should I switch to vc++.net and code in c++, I
would just code in vb.net.

Thanks in advance,

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 17 '05 #1
9 1938
borhan wrote:
Hi folks,

I am using vs.net 2003 for a time, however since last week I was
using MFC. Now, I am into managed C++ and windows forms.

I can say that I am very much confused with it, and I have some
questions I hope I can find some answers here...

1. First of all, I got the answer to this question but I have to
point that out! What kind of c++ programming is that to write all the
code in the header file ??? MS annnounced that it didn't market a new
product after vs6 for a long time coz they were working on vs.net ???
and now they say that the c++ win froms was designed by c# people
because there wasn't enough time???? Who would buy this ???
This has been adequately covered many times. You're completely entitled to
not like it.

2. Ok, the first thing that I noticed with vc++.net is that It
compliles and complies and compiles ... I would have compiled 5
projects in MFC and my vc++.net code still compiles... Is there a
reason for this ????
The VC7.1 compiler is unquestionably slower than the VC6 compiler, although
I would have a very hard time believing it's 5 times slower. That said, I
haven't done much with compiling managed C++ with VC - it's possible that
there's a significant slow-down there due to all the meta-data loading &
reading that goes on. That's just a guess though.

3. And my other major question, I am also a vb programmer since vb5
and when I have upgraded from vb6 to vb.net I was really charmed with
the features of vb.net. Does all the namespace functions work the
same speed for all languages?? For example if I code the same project
with c++.net or vb.net or c# using namespaces and managed code would
all work at the same speed coz they all use the same shared
namespaces??? This is my concern till I started to code in vc++.net.
If it is the case why should I switch to vc++.net and code in c++, I
would just code in vb.net.


There's no difference in the performance of the .NET framework classes based
on the language from which you call them. For a simple Winforms app, it's
unlikely you'll see any significant difference in performance between C++,
C# and VB.NET (or JScript.NET or J# or ...).

Note that namespaces have nothing to do with any of this: namespaces are
simply a mechanism to organize the 10's of 1000's of names that exist in the
..NET framework into somewhat manageable chunks. Whether a class is in such
and such namespace or not has no performance implications at all.

-cd
Nov 17 '05 #2
cd first of all thank you for your quick reply and kind interest,

[quote:0a2e2b7932]The VC7.1 compiler is unquestionably slower than
the VC6 compiler, although
I would have a very hard time believing it's 5 times slower. That
said, I
haven't done much with compiling managed C++ with VC - it's possible
that
there's a significant slow-down there due to all the meta-data loading
&
reading that goes on. That's just a guess though.
[/quote:0a2e2b7932]

I think I was a bit over exaggerating about it, but I was trying to
highlight the delay in the compiling time that made me really
disappointed.
There's no difference in the performance of the .NET framework classes based on the language from which you call them. For a simple Winforms app, it's unlikely you'll see any significant difference in performance between C++, C# and VB.NET (or JScript.NET or J# or ...).

Note that namespaces have nothing to do with any of this: namespaces are simply a mechanism to organize the 10's of 1000's of names that exist in the ..NET framework into somewhat manageable chunks. Whether a class is in such and such namespace or not has no performance implications at all.


Sorry about that missusage of the word. By saying namespaces I was
trying to mean managed .net classes. So I got the answer, all
managed classes work the same for all languages.. So where is the
power if c++ ?? If I use managed .net classes ?

Thanks for your interest,

cheers,

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 17 '05 #3
borhan wrote:
Sorry about that missusage of the word. By saying namespaces I was
trying to mean managed .net classes. So I got the answer, all
managed classes work the same for all languages.. So where is the
power if c++ ?? If I use managed .net classes ?


The power is where it's always been for C++ : more power to create your own
classes. If your programs are going to do little more than bolt a bunch of
framework classes together, then use whichever language you like the best.

In the next version of Visual Studio, C++ will have some definite advantages
for .NET development. Today there's less (but not none). The main thing is
that VC++ allows you to mix native and .NET code in the same executable
(e.g. calling a WinForms form from an MFC applicaiton). None of the other
..NET languages let you do that.

-cd
Nov 17 '05 #4
ok I got the point thanks for guidance and time.

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 17 '05 #5
Carl Daniel [VC++ MVP] wrote:
In the next version of Visual Studio, C++ will have some definite
advantages for .NET development. Today there's less (but not none). The main thing
is that VC++ allows you to mix native and .NET code in the same executable
(e.g. calling a WinForms form from an MFC applicaiton). None of the other
.NET languages let you do that.


Hmm... I'm used to writing a thin GUI (bolting together a bunch of framework
classes), and then putting all the meat in other classes, making very heavy
use of the STL, iostreams and so on.

From what I have learned so far, I can still do this, but there will be a
big performance penalty on switching from managed to unmanaged code. I have
to say it does seem to work as advertised.

OTOH if I try to write entirely managed code, it turns out I lose just
about all the programming paradigms I like. In particular, I usually manage
resources perfectly well with stack sentinels, smart pointers and the like.
I neither need nor want __finally or IDisposable, but it seems that I will
be forced to use them. Losing iostreams for TextReader/Writer is truly
horrible. And as for Collections, there's all that casting: I want the STL.

Doesn't anyone else get itchy new-ing objects willy nilly with not
a thought for their timely demise?
Arnold the Aardvark

Nov 17 '05 #6
Arnold the Aardvark wrote:
Doesn't anyone else get itchy new-ing objects willy nilly with not
a thought for their timely demise?


Yep. The Whidbey (aka VS.NET 2004) release will greatly improve this
situation.

-cd
Nov 17 '05 #7
Arnold the Aardvark wrote:
OTOH if I try to write entirely managed code, it turns out I lose just
about all the programming paradigms I like. In particular, I usually manage
resources perfectly well with stack sentinels, smart pointers and the like.
I neither need nor want __finally or IDisposable, but it seems that I will
be forced to use them. Losing iostreams for TextReader/Writer is truly
horrible. And as for Collections, there's all that casting: I want the STL.

Doesn't anyone else get itchy new-ing objects willy nilly with not
a thought for their timely demise?


I am 100% with you there. Managed C++ is Standard C++ bereft of
virtually every useful and trusted C++ idiom. Deterministic resource
cleanup? Const correctness? Truly type-safe containers? Hey, Java
doesn't have it, hence C# doesn't have it, and all the world's a web
site anyway, so why do you think you should get extra privileges?

From what I have seen so far, I doubt that Whidbey will remedy this
unfortunate situation. While I trust that Herb Sutter does his best to
remove the ugliest syntactic warts, I doubt that he will be able to work
against the fact that by its very design .NET forces the Java paradigm
upon C++. What ist the use of getting rid of all those double
underscores when you still can't put managed objects into an STL
container or an STL container into a managed object?

I would be happy to be shown I am wrong.

Gerhard Menzl
--
Humans may reply by replacing the obviously faked part of my e-mail
address with "kapsch".

Nov 17 '05 #8
Carl Daniel [VC++ MVP] wrote:
Arnold the Aardvark wrote:
Doesn't anyone else get itchy new-ing objects willy nilly with not
a thought for their timely demise?


Yep. The Whidbey (aka VS.NET 2004) release will greatly improve this
situation.


Thanks. I'll look at the spec.

Nov 17 '05 #9
Gerhard Menzl wrote:
I am 100% with you there. Managed C++ is Standard C++ bereft of
virtually every useful and trusted C++ idiom. Deterministic resource
cleanup? Const correctness? Truly type-safe containers? Hey, Java
doesn't have it, hence C# doesn't have it, and all the world's a web
site anyway, so why do you think you should get extra privileges?


I can understand Microsoft trying to compete with Java, hence C#. It
is not in their nature to follow other people's standards. But I simply
don't get this idea of language neutrality. Why is it desirable to
hobble C++ to make it compatible with C#, or to radically change VB
for the same reason. It just seems like a lot of hype to me.

If one likes C++ garbage collectors then it is possible to add them
without throwing away the standard. Personally I think C++ garbage
collectors are for people who write garbage. My less than entirely
humble opinion.

As GUI component libraries go .NET is OK, but lacks some whizzy
features that Borland put into their VCL. Still, there is nothing
to prevent them from being added in the future. Hmmm.. action lists.

I guess .NET has some other 'benefits', but they are still opaque to
me.
Arnold the Aardvark

Nov 17 '05 #10

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

Similar topics

11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
4
by: Anthony Gallagher | last post by:
I have a bunch of libraries compiled using VC++ 6.0, and I am trying to recompile one of our projects using VC++ .NET. I get all kind of linker errors (specially in STL calls). How do I get rid of...
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
2
by: vemulakiran | last post by:
Hi all, I have doubt regarding .NET. I have a tool which was developed on VC++ 6.0(Win32 Application ). The application communicates with library (API) which was developed on VC++ 6.0 called core...
2
by: | last post by:
Everything seems to be moving to .NET and VC++ seems to be adding a lot of managed code support every new release. The questions: is unmanaged code in VC++ beeing phased out in favour of managed...
4
by: ultranet | last post by:
I have cruised around http://msdn.microsoft.com/visualc/ and the rest of the site, and i am not able to find a single C++ or VC++ certification exam that will be available after June 30, 2004. I...
1
by: Steve | last post by:
We are considering the ways to migrate our VC++ 6.0 applications to .NET platform. It would be nice to rewrite them completely in C#, but due to the time constraints this option is out of...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
15
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.