Thread: Using differents API in a program

  1. #1
    Disturbed Boy gustavosserra's Avatar
    Join Date
    Apr 2003

    Using differents API in a program

    What do you think about using different API in a program?
    I was wondering about because Im learning Windows programming, and I used others libraries like SDL. I think thats it is OK if none of the used API mess with another, but Im talking about good programming pratics. Sorry for the bad english...
    Is it correct?
    Nothing more to tell about me...
    Happy day =)

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Yeah, you can do something like use OpenGL for graphics and DirectX for sound without any trouble. I don't know if you can mix WinAPI and SDL though.

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    There shouldn't be any conflicts as far as the code is concerned. It is common to use different APIs which do different things in the program.

    I'd be cautious about using different APIs which do the same thing in a program though. You don't, for example, really want two different APIs trying to draw on the screen at the same time. It would be a real pain to maintain later if they overlap like that. Anyways, thats just my opinion.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  2. how to get all invoked system API of a program
    By George2 in forum C Programming
    Replies: 3
    Last Post: 07-21-2006, 09:39 AM
  3. Replies: 4
    Last Post: 07-05-2004, 07:41 PM
  4. Is it foolish to program with Win32 API ?
    By Kelvin in forum Windows Programming
    Replies: 2
    Last Post: 07-09-2002, 02:03 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM