Re: Linked Lists debugger question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Robby" <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel messaggio news:F8E60C5B-B0E2-42FA-9CD1-C0136F586E28@xxxxxxxxxxxxxxxx

Hello fellows, thanks for your replies!

You are welcome.

I would like to ask you guys another question, Its been a long while I
haven't used VC++ GUI and I would like get back into VC++ by progressivelly
using its IDE to invoke small C programs that I would want to practice such
as linked lists. Then slowly migrate into C++ so I can continue where I left
off 2 years ago with Charles petzold's book.

However should I continue with the old version of VC++ or should I upgrade
to some better and more recent version of VC++ like Visual studio perhaps.

I would suggest you to move to Visual C++ 2008 Express Edition. It is a free download:

http://www.microsoft.com/express/vc/

It has both a very good IDE and a very good C++ compiler.
I don't know what you mean with "old version of VC++", but if you mean Visual C++ 6, then VC++2008 has a better and more standard compliant C++ compiler.

And so what's deal with C#, (I know I have already asked about this! but) is
it still the language of choice for develloping PC based applications? and
what about communications (like usb, rs232... is VC++ or C# better.

C# is a language that you could compare to Java: it is not native, it is "managed". C# code runs on a kind of virtual machine. Moreover C# has some features like garbage collector that is not present in C++ (but if you use modern C++ "tools" like STL containers like std::vector, and Boost/TR1 smart pointers like shared_ptr, you don't need a garbage collector in C# style).
I think that lots of Windows PC successful applications are written in C++ (like Photoshop, Word, Excel, etc.).
From what I heard and somehow seen, C# is widely used for web-based
applications, like ASP.NET stuff
For communications with USB or RS232, I think that if you have proper libraries (in form of pure native C DLLs, or COM libraries, or .NET components) you can use whatever language, be it C++ or C# or VB.NET.


I *think* C# is close to VBA. You select a control, drag it and drop it onto
a workspace, double click on it and you are prompted to start entering code

Yes, this is a RAD (Rapid Application Development) paradigma that I discovered with "classic" Visual Basic (i.e. Visual Basic 5 and 6).
It is available also in C# and VB.NET if you use WinForms. You can download Visual C# 2008 Express Edition and experiment with WinForms. You can just drag some controls (like list-box, edit control, etc.) from a palette of controls and drop them into a form. Then you set some properties (like text or background colors) with the properties editor, and then you write some code to manage events (like button clicks).

Note that Microsoft introduced some extensions to C++, developing C++/CLI. With C++/CLI extensions, you can use this RAD paradigma for building GUIs also with C++.

but can someone tell me a little bit about the
bernefits of C# vs C++ native code.

The argument is very rich... In few words, I would say:

1) If you want top performances, use C++

2) If you have huge existing C++ code base, continue using C++ (it would make no sense to port to C#)

3) If you want portability to other platforms (e.g. Unix), you should use C++ instead of C# (there is a project called Mono that would like to port C# and .NET framework to Unix/Linux, but it seems to me not mature enough...)

4) If you want to build Windows system components like shell extensions (that are based on COM), you should use C++

5) If you want to write device drivers, you must use C++ (or better, I read that to write kernel drivers you need pure C - but I'm not expert in that fascinating field of device driver development).

I would suggest C# if you want to build web-applications using ASP.NET.

HTH,
Giovanni

.



Relevant Pages

  • Re: linux-next: Tree for July 18 (very early crash on x86_32)
    ... BTW ide tree's conflicts against Linus' tree should be fixed now. ... # Infrared-port device drivers ... # PCI IDE chipsets support ...
    (Linux-Kernel)
  • Re: Still clinking to Java?
    ... I was toying with saving effort by making the C version a DLL and redoing the GUI in my portable Cello GUI. ... But there would be new work on the engine, and just trying to get a clean compile of the C version under VC++ I saw enough to remind me I would rather work in Lisp. ... IDE investments can simply be skipped. ... I just don't want to switch language _at that point_ and recode ...
    (comp.lang.lisp)
  • Re: GnatBench (from GPL edition)
    ... Does that, to you, match up with the phrase "Same modern GUI ... Primarily it's through frustration - I like Eclipse and it's ... Ada IDE! ... while you can use foreign language libraries in Ada, ...
    (comp.lang.ada)
  • Re: GUIs - A Modest Proposal
    ... Even Tk is not a full featured GUI library, ... Its canvas widget can generate PostScript, and under Unix and OS X it is easy enough to send PostScript and text to the printer via lpr, but that doesn't work on Windows--and the available printing extensions for Windows are very different in their implementation. ... Support for parsing and displaying HTML across platforms. ... A couple of different Tk extensions provide support for basic HTML display, but Tk lacks a binding to a modern HTML engine like WebKit and Mozilla--something both Qt, wxWidgets and Cocoa have in one form or another, either as part of the core library or as an extension. ...
    (comp.lang.python)
  • Re: Best IDE in Ubuntu, or Which IDE do you use ?
    ... i think IDE only code editor.... ... I see python is a rising language, ... database gui vcl is not complete, ... I have all these installed on my Ubuntu 9.04, I do test these tools on ...
    (Ubuntu)