|
-
May 9th, 2002, 01:31 AM
#1
Thread Starter
Addicted Member
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?
-
May 9th, 2002, 05:25 AM
#2
PowerPoster
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).
-
May 9th, 2002, 10:18 AM
#3
Thread Starter
Addicted Member
ok well i didnt pretend to know what i was talking about! LOL
-
May 9th, 2002, 10:19 AM
#4
Thread Starter
Addicted Member
so what do you do with c++ then.. write line code? how dull.
-
May 9th, 2002, 11:53 AM
#5
Monday Morning Lunatic
It's relatively easy to make a window using pure C++, actually 
See the FAQ for how
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
May 13th, 2002, 07:18 AM
#6
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.)
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|