Thread: C++ .net

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

    C++ .net

    Merry Christmas Everybody,

    Can anybody recommend a good C++ .net book?

    Thanks

    RocketMan

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Just heads up, but most will discourage you to use C++ .NET / CLI / CLR or whatever to call it. It's a vendor lock-in, supported only by Microsoft.
    I would recommend you to use C# or just native C++.
    Keep that in mind, if you didn't already.
    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.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    932
    You mean that we can make real windows programs (not console) without C++ .net?

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Of course you can. All thousands of applications (including) games out there are native C++ and not .NET.
    I don't know why anyone would think of such an absurd thing. Console apps are mostly for beginners and for CLI-type apps.
    Last edited by Elysia; 12-27-2007 at 12:19 PM.
    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.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Yes, e.g., with the Windows API.

    Console apps are just for beginners.
    You may get spanked by a couple of people here for saying that, you know
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    932
    Wow thats so cool , i thought we were condemned to use C++ .net.
    The reason maybe that every beginner thinks that way is that no c++ book mention it.
    They all speak of c++.net when talking about windows programming.

    And what compiler should we use for it?
    In the book where i learned c++, it said that Dev-c++ not so good for it.
    Last edited by Ducky; 12-27-2007 at 11:23 AM.

  7. #7
    Registered User
    Join Date
    Dec 2007
    Posts
    37
    hey I am new to C++ but I use dev-C++ and it works great and oe thing I lov about it is that it automaticaly compiles it to a executable.(they may all do that but I dont know sry) I have used other languages where the compiler makes you like rename and all this other jusnk just to make an executable. But with dev-C++ it is just as simple as making the program work and compiling it.

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    All C++ compilers do that (and all C compilers too).
    Last edited by Elysia; 12-27-2007 at 12:20 PM.
    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.

  9. #9
    Registered User
    Join Date
    Jan 2007
    Posts
    89
    if you are really interested in using a cross-platform compiler, I would suggest code::blocks, this compiler also comes with nightly builds.
    IIRC dev-cpp isnt supported anymore. And if your using dev-cpp mainly for the devpaks, you can also use those with code::blocks.

    http://codeblocks.org

    oops...
    code::blocks is a cross platform IDE, it supports GNU GCC (MinGW/Cygwin), MS Visual C++ Free Toolkit 2003, Borland's C++ Compiler 5.5, DigitalMars Free Compiler., OpenWatcom and Small Device C Compiler (SDCC).
    Last edited by eaane74; 12-27-2007 at 12:24 PM.

  10. #10
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    And what compiler should we use for it?
    In the book where i learned c++, it said that Dev-c++ not so good for it.
    What's it? Windows programming with otherwise standard C++, or Windows programming with C++/CLI?

    All C++ compilers do that.
    And Dev-C++ is not a C++ compiler

    if you are really interested in using a cross-platform compiler, I would suggest code::blocks, this compiler also comes with nightly builds.
    Code::Blocks is not a compiler either
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  11. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by laserlight View Post
    Yes, e.g., with the Windows API.


    You may get spanked by a couple of people here for saying that, you know
    Board didn't save my edit :/
    It should be
    "Console apps are mostly for beginners and for CLI-type apps."

    Beginners do console apps simply because it hides the complexity of doing windowed applications. Beginners concentrate mostly on the language before moving on to making real applications.

    Quote Originally Posted by laserlight View Post
    And Dev-C++ is not a C++ compiler
    Grrr. Same again.
    Board didn't save my quick edit. Have to do full edit to submit the edit.
    Last edited by Elysia; 12-27-2007 at 12:22 PM.
    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.

  12. #12
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    So Elysia, if you have a complicated idea you want to test out, do you throw it straight into your main application, or perhaps start a separate (and simple) console project to get an understanding of exactly how it works (and debug it).

    I know I do the latter.

    GUI isn't further up the "evolutionary tree" of programming. It's just another API.
    Plus there are plenty of other GUI interfaces to play with, not just win32 or .net.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  13. #13
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Salem View Post
    So Elysia, if you have a complicated idea you want to test out, do you throw it straight into your main application, or perhaps start a separate (and simple) console project to get an understanding of exactly how it works (and debug it).
    Of course, the later. I usually do a simple console app.

    GUI isn't further up the "evolutionary tree" of programming. It's just another API.
    Plus there are plenty of other GUI interfaces to play with, not just win32 or .net.
    Agreed. I'm not implying they are the only either.
    But GUI if "further up the 'evolutionary tree'" in that it isn't easy. There are a lot of things to understand, there are platform issues, the code rarely works the way you want it, requires a lot of time to investigate, debug, and so on.
    Usually, books deal with console apps to learn the actual language before starting into the world of GUI, which is a little more complicated. The idea with any language is to learn it properly first and then move on to making real world applications.

    Just as you do, when I want to try something, I usually use a new console project or an existing project that suits my needs so I don't have to waste time trying to fix things that aren't related to what I want to do, or try.
    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.

  14. #14
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Ducky View Post
    And what compiler should we use for it?
    Visual Studio is a virtual standard when writing Windows software. Here's the free version: http://www.microsoft.com/express/download/

  15. #15
    Registered User
    Join Date
    Dec 2007
    Posts
    932
    @Laserlight
    "What's it? Windows programming with otherwise standard C++, or Windows programming with C++/CLI?"
    Im sorry i dont even know what youre talking about.
    How many c++ programming exist?
    I thought there were two, either console or windows application.
    Now im completely confused.

    @cpjust
    I have Visual Studio but i thought it was c++.net.
    Last edited by Ducky; 12-28-2007 at 01:06 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. migrate from .Net 2.0 to .Net 3.0
    By George2 in forum C# Programming
    Replies: 3
    Last Post: 07-25-2007, 04:07 AM
  2. Some .NET Distribution Stats
    By nickname_changed in forum C# Programming
    Replies: 2
    Last Post: 05-14-2005, 03:41 AM
  3. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  4. .net
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 02-15-2002, 01:15 AM
  5. Visual J#
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-08-2001, 02:41 PM