473,404 Members | 2,195 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,404 software developers and data experts.

Well, well I need to know what, C++ or C#??

Hi every body:

There are some years that I don´t to practice C++, but since 3 moths when I
decide to take up again "C" I encounter that there are 2 versions of "C"
(C++ and C#), the first time, that situation results confused to me. Now I
have some questions: ¿C# will replace to C++? ¿I will to obtain the same
power with C#?

Regards
Carlos Villaseñor
Jan 27 '06 #1
6 1168
Hi,

C# is a language which was designed specifically for the .NET framework.
because of that, if you want to write .NET applications, services or class
libraries, C# is the easiest to use.

C++ .NET is able to build applications that use .NET, native win32 or both.
that way you can reuse existing code in building .NET applications. you
can't do that with C#.

check out Carl Daniel's reply in the thread '.NET' from the 26th of january
2006' for more info.

for rapid application development and enterprise applications, C# is more
suitable (IMO) than C++ because it takes less time to do things.
C++ will still have it's place because it allows you to do manual memory
management, interoperate with native source code, and even to drop into
inline assembly language if you need it. C++ is a long way from dead.

kind regards,
Bruno.
"Carlos Villaseñor M." <cv*******@avantel.net> wrote in message
news:ui****************@TK2MSFTNGP10.phx.gbl...
Hi every body:

There are some years that I don´t to practice C++, but since 3 moths when
I
decide to take up again "C" I encounter that there are 2 versions of "C"
(C++ and C#), the first time, that situation results confused to me. Now I
have some questions: ¿C# will replace to C++? ¿I will to obtain the same
power with C#?

Regards
Carlos Villaseñor

Jan 27 '06 #2

"Carlos Villaseñor M." <cv*******@avantel.net> wrote in message
news:ui****************@TK2MSFTNGP10.phx.gbl...
Hi every body:

There are some years that I don´t to practice C++, but since 3 moths when
I
decide to take up again "C" I encounter that there are 2 versions of "C"
(C++ and C#), the first time, that situation results confused to me. Now I
have some questions: ¿C# will replace to C++? ¿I will to obtain the same
power with C#?

MS will do unmanaged code as far as I can guess beyond VISTA. They create a
service, define interfaces, create the host-process, which is written in (as
you can see in IIS 7) a mix of managed and unmanaged code. For such things
you need C++.
If you write new code, I would not advise C++.

Jan 27 '06 #3

"Carlos Villaseñor M." <cv*******@avantel.net> wrote in message
news:ui****************@TK2MSFTNGP10.phx.gbl...
Hi every body:

There are some years that I don´t to practice C++, but since 3 moths when
I
decide to take up again "C" I encounter that there are 2 versions of "C"
(C++ and C#), the first time, that situation results confused to me. Now I
have some questions: ¿C# will replace to C++? ¿I will to obtain the same
power with C#?

Regards
Carlos Villaseñor

C++ does all types of applications, on and off the Windows platform. C# is
..NET only. I don't think there is any intent to replace C++ with C#.
If the spectrum of C# project types and templates meets your needs, great.
If you need to go beyond the boundaries of .NET, C++.
Jan 27 '06 #4
>> If you write new code, I would not advise C++. <<

That's a pretty generic, and might I say brazen statement to make,
unqualified isn't it? :-)

Cheers,
Wayne.
"Egbert Nierop (MVP for IIS)" <eg***********@nospam.invalid> wrote in
message news:OA**************@TK2MSFTNGP14.phx.gbl...

"Carlos Villaseñor M." <cv*******@avantel.net> wrote in message
news:ui****************@TK2MSFTNGP10.phx.gbl...
Hi every body:

There are some years that I don´t to practice C++, but since 3 moths when
I
decide to take up again "C" I encounter that there are 2 versions of "C"
(C++ and C#), the first time, that situation results confused to me. Now
I
have some questions: ¿C# will replace to C++? ¿I will to obtain the same
power with C#?

MS will do unmanaged code as far as I can guess beyond VISTA. They create
a service, define interfaces, create the host-process, which is written in
(as you can see in IIS 7) a mix of managed and unmanaged code. For such
things you need C++.
If you write new code, I would not advise C++.

Jan 27 '06 #5

"msnews.microsoft.com" <w.*******@ozemail.com.au> wrote in message
news:O2*************@tk2msftngp13.phx.gbl...
If you write new code, I would not advise C++. <<


That's a pretty generic, and might I say brazen statement to make,
unqualified isn't it? :-)


agree.

Let's make it
in general, if you write new code, I would not advise C++.

:)
Jan 27 '06 #6
Still too broad.
In my company, I often have to build an API for hardware devices or special
software interfaces. so that they can be used by LabVIEW applications.

I could do this with C# and build a class library, but in a lot of cases,
C++ is the best choice:

- using extern "C" interfaces allows any language to use the api, instead of
only the .NET enabled ones.
- often, older code has to be reused of interfaced with. while you can
Invoke dll functions, doing so for lots of functions becomes tedious.
- if the api caller does not use managed types internally, it has to
marshall all data across managed / unmanaged boundaries. i have done a test
where i compared performance when doing a 'select *' query on a large
table. returning the result set using native ODBC: 2 seconds. returning the
results using ADO .NET: 30 seconds because each string had to be marshalled
individually into the LabVIEW environment.

so you see, there are lots of situations where C++ still provides the best
way of doing things.

but for most web /data / enterprise applications i agree with you.

kind regards,
Bruno.

"Egbert Nierop (MVP for IIS)" <eg***********@nospam.invalid> wrote in
message news:uc**************@TK2MSFTNGP14.phx.gbl...

"msnews.microsoft.com" <w.*******@ozemail.com.au> wrote in message
news:O2*************@tk2msftngp13.phx.gbl...
If you write new code, I would not advise C++. <<


That's a pretty generic, and might I say brazen statement to make,
unqualified isn't it? :-)


agree.

Let's make it
in general, if you write new code, I would not advise C++.

:)

Jan 28 '06 #7

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

Similar topics

45
by: Market Mutant | last post by:
I just wonder job selections, job openings and salary level of PHP programer or Perl programmer comparing to Java programmers. Is Java programmer's salary has a minimal of 60K in US? Are there...
14
by: Eakin, W | last post by:
Unlike a coding question, which may have a definite answer, this deals more with opinion. As I continue my studies of PHP and MySQL, and get to the point of being able to use them in a work...
4
by: DJ | last post by:
Here are my answers for quiz 2 - how well did I do? 1. Which of the following types cannot be used to subscript an array? a. short b. char c. float d. all of the above types may be used to...
24
by: George Hester | last post by:
For awhile I have been trying to take a commercial java cube (each face is a link) and make it better. When I say better I'm referring to making the cube provide CLEARLY the destination of each...
15
by: Steve Richfield | last post by:
To All, First, some of your replies to me have been posted through DevelopersDex, and these are NOT posted on USENET for the world to see. DevelopersDex appears to be trying to hijack USENET,...
1
by: ad | last post by:
I want to determinate if a xml is well-format and valid before export it to database. We can determinate if xml is valid from the article:...
138
by: Ian Boyd | last post by:
i've been thrown into a pit with DB2 and have to start writing things such as tables, indexes, stored procedures, triggers, etc. The online reference is only so helpful. The two pdf manuals are...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
18
by: jeff_j_dunlap | last post by:
Dear C++ Users: I alwasy use std::string and avoid char buffers but last night I wanted to see if I could make a C style function that would be thread safe. For me, it was a good learning...
40
by: Summercool | last post by:
I wonder in PHP, can you have a function like print_debug($foo); and it will print out: $foo is: 3 that is, it will print out, most importantly, the variable name, as
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.