Tuesday, July 28, 2009

2 questions about c++?

1. I have tried to copy and paste game c++ codes to run using visual 2005 prof edition but that didn't work. what type of projects should we choose at the beginning (win console app, or empty proj,....





2. I want to try winpcap using visual 2005 prof edition. How can i use it ? what type of poject again ? Note : i know nothing about working with winpcap, but i just want to see what it does.......





An additional question ... when i see any type of c++ codes on the net .... how do i know the type of projects to choose?

2 questions about c++?
Firstly, you just can take a piece of code from somewhere else, paste it into a code window, hit run, and expect it to compile and execute. That is a very naiive assumption.





There are different versions of programming languages. Some programs may run in one environment, but not in another. In addition, some languages require not only the program itself, but the program environment must be properly configured and setup. C++ requires not only the code, but the right compiler, the right helper code (libraries), and a host of other considerations in order to properly run.





Your best bet is to learn the basics of a the language. Take a class or work your way through a tutorial. The instructions will inform you as to the systems requirements for running the code, and any special configuring that you must perform.





But you must be patient. Start off with very basic learning goals; work on very simple programs. Then slowly—as you gain more knowledge and experience—work your way up to more advanced material. Little by little, how things work will make more sense to you. You will better realize both the limitations and the possibilities.





The WinCap interfacing that you want to do is complicated setup. That process extends the operating system to provide low-level network access, and a library that is used to access the low-level network layers. You certainly need a substantial C++ knowledge in order to even begin using WinCap. In addition, you will have to make several special system modifications to get it to work with C++. So, if you have to be realistic in terms of your expectations.





As a learning tool, some professors prefer to begin teaching their students using console applications. These are necessarily basic, trivial programs. In that way, the students are not overwhelmed by the prospect of learning how to work with a graphical user interface—on top of learning the basic syntax, logic, and procedures of programming concepts. Once the students have become somewhat more comfortable with the language, then they advance to the integrated development environment (a regular Windows project).
Reply:Win console


No comments:

Post a Comment