Thread: Trying to get a few things straight

  1. #1
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209

    Trying to get a few things straight

    I'm pretty new to programming and C++, so I have some newbie questions (sorry if this is not the right forum for these questions or if they've been asked before). I'm just trying to get a few thngs straight.

    1. What do I need to learn besides the C++ language itself to be able to program Windows type programs? Do I need to have all of that MS Visual C++ software or can it be done with a compiler like Dev-C++? Also, before I forget, what is that .NET stuff? Do I need to know about that also?

    2. What about game programming? Does this have any ties to Windows programming? Is DirectX programming a whole separate thing from C++ altogether?

    That's all I can think of for now. Thanks in advance-

  2. #2
    Banned
    Join Date
    Oct 2004
    Posts
    250
    1.) to make programs with GUI's you need to know the WIN32 API , yes you can use DEV C++ to make them.
    2.)yes direct x has nothing to do with C++ to program with Direct X you need the dx9 sdk you can download it from MSDN but i dont know if you can use Direct X with DEV C++ you might have to "aquire" MSVC++ 6.0

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    What do I need to learn besides the C++ language itself to be able to program Windows type programs?
    Basically you just need to know which API functions to call, and when to call them I'd check out the tutorials at winprog.org for a start. You can program windows programs with any compiler, and knowledge of .NET is unnecessary.

    What about game programming? Does this have any ties to Windows programming? Is DirectX programming a whole separate thing from C++ altogether?
    Game programming has ties to windows programming because you need to know how to use the windows API to create a window, and read messages from the message pump. Game programming also requires you to learn a lot more as well though. You need to learn the API of your graphics library (OpenGL and Direct3D are examples of graphics libraries), and you need to know quite a bit of math as well in order to manipulate 3D enviroments successfully (dot products, matrices, and vectors are all very common things in game programming). There are excellent OpenGL tutorials at nehe.gamedev.net, and you could probably find some good Direct3D tutorials with a google search.

  4. #4
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Thanks for your answers, but I'm still trying to figure out what an API is. Could you fill me in?

  5. #5
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    windows has it's own header file (windows.h), inside that and many other files you won't need to worry about now, are declarations of API functions. The windows API (Application Programming Interface?) are a set of functions already written for programmers to use. With them, you can do lots of stuff with windows. I suggest getting a win32 reference for when you start doing windows programming.

    I wouldn't suggest trying to do windows programming until you are more familiar with c++ (syntax, structures, and such).
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  6. #6
    C/C++ homeyg's Avatar
    Join Date
    Nov 2004
    Location
    Louisiana, USA
    Posts
    209
    Quote Originally Posted by neandrake
    I wouldn't suggest trying to do windows programming until you are more familiar with c++ (syntax, structures, and such).
    Oh, I knew that. I'm just trying to find some answers to questions that have been bugging me for a while.

  7. #7
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    Yea, the windows API is a slew of functions for you to create and use windows applications. There are container classes for lots of the common apis that make them easier to use (such as MFC). I however, don't like the MFC. When I write windows applications, I build the windows/controls using the resource editor and include it in my project.
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Suggestions for things to study
    By Mastadex in forum Windows Programming
    Replies: 5
    Last Post: 08-18-2008, 09:23 AM
  2. Difference between straight and dynamic allocation?
    By darsunt in forum C++ Programming
    Replies: 10
    Last Post: 06-04-2008, 05:47 PM
  3. yhatzee, small straight
    By uglyjack in forum C++ Programming
    Replies: 2
    Last Post: 06-13-2002, 03:09 AM
  4. things to think about... [from www.nuclearwastesite.com]
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 11-11-2001, 12:47 AM
  5. Help with these three things...
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 08-26-2001, 07:05 AM