-
Visual C++?
ok i know how to program and c-- and i like know vb-- but i dont see how in c++ one goes about creating an instance of a window and all that could someone explain to me how the GUI works in C++? especially considering the way vb you actually see a form and what not.. C++ is just line code is it not?
-
C++ has nothing to do with windows. You're confusing programming languages with environments and operating systems. VB is an integrated development environment that has a windows API built in so you can do windows programming without knowing how to do windows programming.
If you want to use C++ to do windows programming, you have to bring in some windows stuff, such as MSVC++'s "MFC" or Borland's "OWL", each of which give you the windows API in simplified form so that you can do windows programming, but then you have to know how to do windows programming.
If you REALLY want to make your head hurt, you can go directly to the windows SDK itself (which is the thing that MFC and OWL simply for you).
-
ok well i didnt pretend to know what i was talking about! LOL
-
so what do you do with c++ then.. write line code? how dull.
-
It's relatively easy to make a window using pure C++, actually :p
See the FAQ for how :)
-
And for now you can use your C knowledge to create a window in C++ - it's no different!
The windows API is still C, even if you use C++. You can either wrap some parts of you app in classes and create C/C++ hybrid apps (C++ is well suited for this because it allows functional programming) or you can use a wrapper library like MFC or OWL or .NET CRL and program pure OOP. (But unlike phinds said you should first learn API and only THEN the class libraries.)