Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi - I'm interested in updating my C++ skill and have a copy of Microsoft's Visual Studio 2010. I'm mostly interested in writing fairly simple procedures to give me executables to be called from the command line or another program to work on file-based data, though I might consider passing data through sockets if the performance seems adequate.

Which of the many versions of a project should I target? I'm assuming my choices are between "Win32 Console Application", "CLR Console Application", "Win32 Project", or possibly "MFC DLL" given my modest requirements.

A major difference I see is that, as I'm getting pieces of code from useful resources like this one, there seems to be fewer examples for CLI-based code.
Posted

You mix up application types for very different platforms and different languages.

CLR Application: platform: CLR (.NET), language: C++/CLI, which is very different from C++.

All other application types from your list: native Windows platform, language: C++.

So first, choose a platform.

For a beginner, it's the best to learn all the language and basic platform use with console application, CLR or Win32, depending on your choice of platform or language. I would advise you not to move to other application type until you are really comfortable. In particular, if you are using some book on the language, I would recommend you to stay with console until you read all the book from the beginning to the very end and do essential exercises form every chapter.

Good luck,
—SA
 
Share this answer
 
Comments
Espen Harlinn 1-Feb-12 16:41pm    
5'ed!
Sergey Alexandrovich Kryukov 1-Feb-12 20:31pm    
Thank you, Espen.
--SA
If you are starting out then I would suggest you stick to 'plain' C++ and forget about CLI until you are comfortable with the language. If you only want code that runs from the command line then Win32 Console Application should be your app of choice. When you are happy with that you can move on to Windows programming, MFC and DLLs.
 
Share this answer
 
Comments
Espen Harlinn 1-Feb-12 16:42pm    
5'ed!
Win32 Console : basic C/C++ if you do not want UI.
Win32 : if you want UI (basic win32)
MFC EXE : if you want MFC UI.
CLR Console : if you want to use .net

MFC DLL : if you want to create DLL (not an executable).

As for example and samples, AFAIK, there are just fewer CLI programmers out there (if people want to do .net they will simply change to C#).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900