Results 1 to 6 of 6

Thread: Visual C++?

  1. #1

    Thread Starter
    Addicted Member MegaMan's Avatar
    Join Date
    May 2002
    Posts
    128

    Question 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?

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    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).

  3. #3

    Thread Starter
    Addicted Member MegaMan's Avatar
    Join Date
    May 2002
    Posts
    128
    ok well i didnt pretend to know what i was talking about! LOL

  4. #4

    Thread Starter
    Addicted Member MegaMan's Avatar
    Join Date
    May 2002
    Posts
    128
    so what do you do with c++ then.. write line code? how dull.

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width