If I wanted to make a c++ program that is "multiplayer" what do I need?

This is a discussion on If I wanted to make a c++ program that is "multiplayer" what do I need? within the C++ Programming forums, part of the General Programming Boards category; Lets just say the olny thing I have is basic Dev-C++. What do I need to download and/or get to ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    76

    If I wanted to make a c++ program that is "multiplayer" what do I need?

    Lets just say the olny thing I have is basic Dev-C++. What do I need to download and/or get to make internet games programs. (REALLY BASIC PROGRAMS AT LEAST)

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    First you need a clear idea of what you want to do.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    76
    For example. Two people download a program. The first person sends a message to the second person. The second person can now see the msg sent by person #1 even though they are onother computers.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    You only need the PlatformSDK for that.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Cryptic CornedBee

    1) Uninstall Dev-C++. It's outdated. Try Code::Blocks or Visual C++ Express.

    2) Use Google. There answers are out there. Keywords for you: networking, sockets, tutorial, article, library, framework.

    You communicate between two different computers with sockets.

    I assume you're on Windows. The platform SDK would be Windows SDK. Which you don't necessarily need since win32.h etc. come with your IDE (#include <win32.h>).

    There are networking frameworks which wrap many platform SDK procedures into an easy to use cross-platform library. You might try one of those. If not, one win32 networking tutorial is Beej's. There's dozens of topics simply listing tutorials and resources.

    You'd probably want to start with SDL (graphics/input/audio etc framework) and SDL net (networking framework). Just a guess.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,437
    Perhaps you might try Boost Asio. Boost is generally high quality code and portable.
    http://beta.boost.org/doc/libs/1_38_...oost_asio.html
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 06-17-2008, 11:38 AM
  2. want to make this small program...
    By psycho88 in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2005, 01:05 AM
  3. How do you make your program record keystrokes
    By aaroroge in forum C++ Programming
    Replies: 1
    Last Post: 06-25-2005, 06:55 AM
  4. make a program stay....
    By Nirav in forum C Programming
    Replies: 6
    Last Post: 10-12-2003, 07:01 PM
  5. any suggestions on how to make this program smaller?
    By bajan_elf in forum C++ Programming
    Replies: 4
    Last Post: 05-12-2003, 03:24 AM

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