Thread: Coding Windows

  1. #1
    Registered User
    Join Date
    Jul 2005

    Coding Windows

    Can you code Windows in C++ or is it just in C? Does it matter?

    Also, If you're going to use OpenGL or DirectX, do you need Windows32 API?
    Last edited by blankstare77; 07-30-2005 at 06:40 PM.

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Newport, South Wales, UK
    You can create programs for Windows in whatever language you like, be it C, C++, assembly language... the only requirement is that it supports the importing of C-style functions. This is because the vast majority of the Windows API was written with C programming in mind, as was the fashion in the late 80s/early 90s.

    Recent API additions, for example GDI+, require C++ or compatible.

    To be honest, I tend to find interacting with the API in anything other than a C derivative language a chore, especially old-style Visual Basic. There's no 1:1 correlation with C data types, so you end up with hacks all over the place.

    And yes, you'll always need to use at least 1 or 2 API functions to make any Windows program.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 08:05 AM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  3. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM