Thread: DirectPlay?

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    60

    DirectPlay?

    Can you think of a good book concerning DirectPlay? I've heard one can write network applications with it.

    Something different:

    When using graphics in my programs I use this:
    HBITMAP hbm=(HBITMAP) LoadImage(0,"filename.bmp",
    IMAGE_BITMAP,0,0,LR_LOADFROMFILE);

    This works fine. But professional applications do not have a bunch of bitmap files in the same folder as the executable. They seem to have the graphics 'included' in the binary code. Which function did they use? (I don't think they filled the used surfaces pixel-to-pixel, did they?)
    Last edited by Mecnels; 04-07-2003 at 04:27 AM.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Originally posted by Mecnels
    Can you think of a good book concerning DirectPlay?
    Can't recommend anything myself. I'd suggest that you go to your favorite book store, sit down with a few DirectX/DirectPlay books and read the preface/introduction and see if the book will give you want you want.

    Originally posted by Mecnels
    But professional applications do not have a bunch of bitmap files in the same folder as the executable.
    You can compile all of your resources into a DLL. Use GetModuleHandle() to get an HMODULE. Then use LoadImage() with that HMODULE as the first parameter and don't use LR_LOADFROMFILE. If your resources are compiled into your exe, use GetModuleHandle(NULL).

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectPlay or Winsock?
    By kevinawad in forum Networking/Device Communication
    Replies: 5
    Last Post: 10-20-2008, 07:12 PM
  2. DirectPlay & a DirectX question
    By Lurker in forum Game Programming
    Replies: 2
    Last Post: 02-24-2004, 05:37 PM
  3. OOP for DirectPlay Peer to Peer program
    By curlious in forum Networking/Device Communication
    Replies: 0
    Last Post: 11-04-2003, 12:21 AM
  4. DirectPlay help...or maybe simpler?
    By Trireme in forum Windows Programming
    Replies: 0
    Last Post: 02-14-2003, 06:55 PM
  5. mulitplayer and directPlay
    By phantom in forum Linux Programming
    Replies: 1
    Last Post: 03-29-2002, 12:51 AM