Does C++ knowledge come into Win32 API?

This is a discussion on Does C++ knowledge come into Win32 API? within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone, For the past two weeks, I've been learning to use the Windows API, whilst learning C++ language at ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    18

    Unhappy Does C++ knowledge come into Win32 API?

    Hello everyone,
    For the past two weeks, I've been learning to use the Windows API, whilst learning C++ language at the same time. I have to say though that it doesn't seem as if you really need to know C++ to write windows applications - just the Windows API. If this is the case, I might just as well get Borlands C++ Builder and learn to use that. is this true.
    All replies are welcome.
    - Paul Lucas (the Flucas)

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    The Windows API is a C++ library. If you dont know C++, youre screwed.
    My Website

    "Circular logic is good because it is."

  3. #3
    Registered User The15th's Avatar
    Join Date
    Aug 2001
    Posts
    125
    You need the api to setup your windows controls, get and display data. You need C/C++ to do everything else. You need it to manipulate the data that you have recived with a SendMessage() call. You need it to append strings, setup classes / structs. you need it for everything! Without c/c++ you will have a window with a few controls on it, that does nothing! It is probably better not to learn the API for now. Learn C then C++ or both together, whatever floats your boat, then when you have a sound understanding of the langauge lern the API.
    arrh, i got nothing good to say.
    http://www.praxis1.vic.edu.au/home/dcola/

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    >>The Windows API is a C++ library. If you dont know C++, youre screwed.

    Not true. Must know C but the ++ (classes ect) not needed.

    I code many large apps without any ++.

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> I might just as well get Borlands C++ Builder

    Builder is based around a class library, (VCL). This is similar in many ways to MicroSoft MFC. These are "++" environments, and both "hide" the API from the coder by putting wrappers around it. I would advocate learning the API before learning a class library.

    >>> Not true. Must know C but the ++ (classes ect) not needed.

    Not totally true. You must know a language which is capable of calling the API functions. C is the native language of Windows, but you can, and indeed I do sometimes, use others. Pascal and Basic for example.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  6. #6
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Pascal / basic with the WIN32 API.

    Your a braver man than me!!

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    1

    Post Essentials for Win32 API

    Hello Dear

    Let me tell you initially that C, C++ forms the base for any programming field i.e. knowledge of it gets you enhanced logic and Analysis Designing Technique via which u could get thru any platform and any prog lang without any much difficulty.

    As far as Win32 API programming is concerned u need to have knowledge for API-> "NamedPipes" which is thru Windows been designed and for adding fuctionality u may need c++.

    I hope I had answered ur question . Even then u feel a need to have further queries u may contact me at my Email Address.

    Regards
    Prashant
    Email :: prashantkumar_ace@yahoo.com

  8. #8
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    prashantkumar:

    Well I'm glad you cleared that one up for us!

    novacain:

    Accessing the API from other languages is not really difficult. The difference is the way parameters are passed, but once you understand the differences, you can call whatever you like from whatever you like, (there are also some differences in the calling conventions but that again is manageable). I have written a complicated frame grabber/manipulator for a digital video camera in Visual Basic, (not through choice but because my customer wanted it so), and I do a lot of my database work with Delphi, (Pascal), because it is so much easier than the same thing in VC.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  9. #9
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    How about COBOL and WIN32 API?

    (Gives me the creeps just thinking about the combination, getting everything in the right areas, noooooooo..)

  10. #10
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    I have recently seen references to both Visual COBOL and Object COBOL...

    PIC[?]

    !
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  11. #11
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    hm... somewhat unrelated, but... I saw Visual J# .NET... how creepy is that ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 09-18-2005, 09:11 PM
  2. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 04:26 PM
  3. OpenSSL and Win32 SSL API :: SSL/TLS
    By kuphryn in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-10-2004, 07:46 PM
  4. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 07:51 PM
  5. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 06:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21