C# express vs C++ express

This is a discussion on C# express vs C++ express within the C# Programming forums, part of the General Programming Boards category; Hi all, Just a quick question to the experts. Im currently an embedded c programmer and i would like to ...

  1. #1
    Registered User RocketMan's Avatar
    Join Date
    Dec 2007
    Posts
    28

    C# express vs C++ express

    Hi all,

    Just a quick question to the experts. Im currently an embedded c programmer and i would like to do some windows interface applications to my gadgets using the serial and usb ports etc. The data from my gadgets will be displayed as grafts and overlayed each other.

    From you vast experience which is the best to use from a c programmers perspective? And can be run on xp and vista from an exe. Also would you advise to go for the version up from express?

    Look forward to your reply.

    Regards.

    RocketMan.

  2. #2
    Registered User
    Join Date
    Aug 2008
    Posts
    188
    even tho u have huge amounts of C experience, i'd expect the learning curve would still be lower for you to use C# rather than C++.

    if performance is an issue C++ is a better choice, although C# isn't too far behind.

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    C# is easier than C++, quite clearly. But ultimately, they are two different languages with ups and downs. And typically the only thing that is the same between C++ and C# is the syntax.
    Wikipedia likely have details on both languages, so you can choose one.

    But if you want to make it as easy and fast as possible, C# is the tool. Just remember that it's slow - unlike C. If you need a high-end language and fast speed, then C++ is your tool.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Main differences, C# has the .NET library which has pretty much anything you need (though you may end up using less verbose versions of their library if entirely necessary) C++ has the user aided memory management while C# manages memory for you. I haven't touched C++ in several months, and I am also awaiting C++0x.
    Here to Deceive, Inveigle, Obfuscate Since 1945

  5. #5
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    C++ too can utilize the .NET library if you want to, both in managed and unmanaged versions. From what I've seen though accessing managed code in unmanaged code looks especially tedious.

    For RAD like it sounds you want though, C# can really shine here.

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    Quote Originally Posted by valaris View Post
    C++ too can utilize the .NET library if you want to, both in managed and unmanaged versions. From what I've seen though accessing managed code in unmanaged code looks especially tedious.
    No, it cannot. You speak of C++/CLI, which is a completely different language, even though is it basically just C++ + dotNet.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Well some of the dynamic programming stuff they are doing with 4.0 will probably bridge the gap.
    Here to Deceive, Inveigle, Obfuscate Since 1945

  8. #8
    Banned
    Join Date
    Dec 2008
    Posts
    49
    I believe if you are wanting code that is remotely portable to your embedded hardware you have no choice but to learn C++. If something is never leaving the PC C# offers rapid developmental time.

  9. #9
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    "no choice"? Zomg!
    You sound as if it is a bad thing!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #10
    Banned
    Join Date
    Dec 2008
    Posts
    49
    I just do not wish for the original poster to believe that he has an option of using C# on most embedded systems. The option simply does not exist most of the time. And it isn't a good thing nor a bad thing. Its just a thing.

  11. #11
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    Quote Originally Posted by Elysia View Post
    No, it cannot. You speak of C++/CLI, which is a completely different language, even though is it basically just C++ + dotNet.
    http://msdn.microsoft.com/en-us/visualc/bb892742.aspx

  12. #12
    Registered User
    Join Date
    Aug 2008
    Posts
    188
    i wouldn't say you can't do embedded development....
    http://en.wikipedia.org/wiki/.NET_Micro_Framework

  13. #13
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Usually C# is not available on embedded systems. IE: XPE does not have .NET.

  14. #14
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    But that is a different thing. It uses C# to do the managed and simply calls the C# code from C++. That does not mean C++ can use dotNet.
    If it did imply that, then it also implies that VB can access the Java library.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  15. #15
    Registered User
    Join Date
    Dec 2008
    Posts
    2

    I have a problem of programming

    Hi man, I have a problem.
    I am working in C# but be import a DLL make in c++, i don't how work with the data type LPCTSRT in c#.
    thank you

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VC++ Express Edition
    By alyeska in forum C++ Programming
    Replies: 4
    Last Post: 09-27-2007, 09:08 PM
  2. Linker errors with 2005 Express
    By thetinman in forum Windows Programming
    Replies: 4
    Last Post: 12-30-2006, 08:04 AM
  3. Help: Microsoft Visual Basic 2005 Express Editon
    By karlawarla in forum Windows Programming
    Replies: 5
    Last Post: 11-22-2006, 01:46 PM
  4. Visual Studio Express for free
    By Frobozz in forum C# Programming
    Replies: 2
    Last Post: 04-29-2006, 09:59 PM
  5. Familar with Outlook Express?
    By Shadow in forum Tech Board
    Replies: 1
    Last Post: 05-22-2004, 01:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21