Adarshdeep Singh

hi all!...

i am a software engineer, i always worked on VB & m quite good in that. in that i have mostly made database applications. but now i want to switch to different type of projects like, the projects which can communicate with the system & hardware. please let me know what VC++ can do which other languages cant do. i heard that its the language which can do anything but what it can do, what is the scope of this language, i dont know. please advice me in this.

thanks & regards,

Adarsh...




Re: Visual C++ Language New to VC++ Programming

Shakje

From VB you might find it easier to move to C#. C++ when in native mode allows you to directly control how memory is accessed, write code in assembler, use templates (like generics but resolved at compile time, allowing for things such as template meta-programming), it allows you to get into the murky depths of the Win32 API and actually work with Windows at the very basic level, it has much more flexible syntax than VB, and it looks better. As far as .NET is concerned, C++ is pretty much as powerful as any of the other .NET languages, with the unique exception that it can mix native code (ie code that directly manages memory and uses templates etc.) with managed code (ie. .NET code).

It's a great language, but you can do a lot more damage with it if you make a mistake.






Re: Visual C++ Language New to VC++ Programming

einaros

In addition to what Iain said, you should consider getting a book if you're curious about the language. I'm inclined to call it "just another programming language", but it happens to be the one closest to my caffeine-infested heart, so I should probably have left that out. The point, in any case, is that C and C++ have been among the languages closest to machine code for a very long time, and are hence well suited for systems such as kernels; memory, thread and process managers; speed-critical applications and so forth. As programming as an art has matured over the last two or so decades, various other languages better suited for "production line development" have come about. At the moment, I'd probaly advice people to get into C# rather than C++, but then again; that really depends on what you aim to do.

Bottom line, if you're curious; get a book. Accelerated C++ is suggested quite often, so you may wish to start there Smile






Re: Visual C++ Language New to VC++ Programming

Adarshdeep Singh

thanks 4 ur reply, well want to know what type damage can happen if i make any mistake




Re: Visual C++ Language New to VC++ Programming

einaros

Adarshdeep Singh wrote:
thanks 4 ur reply, well want to know what type damage can happen if i make any mistake

As with most other programming languages, you *can* completely corrupt the operating system install. That's not an effect of the language in itself, though, but the OS features which are exposed through it. The single most dangerous thing you'll find is the various file io apis, and those are present in VB, C#, VBScript and most others as well.

I suppose your question is rather what can happen "if you write the wrong command", though, and that is likely to be based on a misconception of what C++ really is. The langauge isn't tied any closer to the system than other languages, and neither will applications you write in C++ be. You won't, by chance, write a certain line of code and unintentionally unleash havoc on your entire local area network. That's just not going to happen.

Bottom line: C++ is just another programming langauge. Approach it with the same care you would with other languages. Spend time reading up on it, and build an understanding of how it works.






Re: Visual C++ Language New to VC++ Programming

Adarshdeep Singh

thanks Einar! i have already purchased a book & trying to learn VC++ 2005 myself. I am having one tool in my mind which i want to create, it is just like building VC++ (6.0/.Net/2005) project, make a package of the solution, install it on the testing machines, run the testing script, & send the test result report to the desired ppl. now plz tell me which language is best for this, i have opted VC++ 2005 for it. is my decision right or all these things can be done by any other language

Regards,

Adarsh...






Re: Visual C++ Language New to VC++ Programming

einaros

Adarshdeep Singh wrote:

thanks Einar! i have already purchased a book & trying to learn VC++ 2005 myself. I am having one tool in my mind which i want to create, it is just like building VC++ (6.0/.Net/2005) project, make a package of the solution, install it on the testing machines, run the testing script, & send the test result report to the desired ppl. now plz tell me which language is best for this, i have opted VC++ 2005 for it. is my decision right or all these things can be done by any other language

Generally, yes, that can be done with just about any language with access to the Platform SDK (which exposes the core functions exposed by the operating system, for file io, networking, registry manipulation and so forth). The shortest "time to marked" would probably be through langauges such as VB or C#, though, as they leave less of the nitty gritty details to the programmer. C++ is a great langauge, but it generally requires more of the programmer than other languages, which means that experience will be key.