1-if i made an application with visual c++ doesn't it need the .net framework and if yes why didn't Microsoft made a program (IDE)to compile c++ programs without .net framework
2- i saw c#, it's syntax is very near to c++ then why people are using c# i mean if there syntax are nearly the same shouldn't they move to c++ because it is stronger and more popular
3-why when i search Google for sockets or networking tutorials 98%is c# and the other is c++
omar shaaban wrote:1-if i made an application with visual c++ doesn't it need the .net framework
No.
omar shaaban wrote:2- i saw c#, it's syntax is very near to c++ then why people are using c# i mean if there syntax are nearly the same shouldn't they move to c++ because it is stronger and more popular
C# is purer, and more pedantic. It doesn't allow some of the sloppiness that C++ has inherited from C. The compiler catches a lot of bugs that would trip up a C++ program at runtime.
Also, the .NET environment is garbage collected, which removes a lot of potential for memory leaks.
omar shaaban wrote:3-why when i search Google for sockets or networking tutorials 98%is c# and the other is c++
thanks rogerorg well i mean by the third question that c# is more used in networking than c++ .
then shouldn't Microsoft just kicked out c++ and put its upgrade which is c#?
Networking is not too hard in c++, if your searching for a specific language put that into the search so, networking c++ tutorials will get you c++ tutorials instead of c#. You can also hit up the msdn database for networking stuff or read up on winsock2 api.
Boost, Raknet, and other C++ networking libraries make networking easy to use and grasp.
There really should not be a need to deal with the winsock library directly, but more power to you if you do. Just keep in mind, that code is not portable to other platforms.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.