Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Direct Play

Direct Play

Scheduled Pinned Locked Moved IT & Infrastructure
game-devquestiongraphicssysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oneillci
    wrote on last edited by
    #1

    I'm not sure if this is the correct place to ask this question but... I'm very new to DirectX and I want to add some network functionality to my game. I can create the DirectPlay object with CoCreateInstance() but my app is failing at InitializeConnection(). I want the LPVOID parameter to always be an Internet TCP/IP Connection For DirectPlay and I'd like to hard code this (bad I know!). What can I pass in to this LPVOID parameter? Can I cast a string or something to LPVOID? Thanks, Ciaran

    E 1 Reply Last reply
    0
    • O oneillci

      I'm not sure if this is the correct place to ask this question but... I'm very new to DirectX and I want to add some network functionality to my game. I can create the DirectPlay object with CoCreateInstance() but my app is failing at InitializeConnection(). I want the LPVOID parameter to always be an Internet TCP/IP Connection For DirectPlay and I'd like to hard code this (bad I know!). What can I pass in to this LPVOID parameter? Can I cast a string or something to LPVOID? Thanks, Ciaran

      E Offline
      E Offline
      Erik Yuzwa
      wrote on last edited by
      #2

      Did you want to hardcode an IP address IN the InitializeConnection? Or did you mean you wanted to hardcode the TYPE of address as being TCP/IP? Which type of DirectPlay object are you trying to use? Client/Server or Peer-to-Peer? Erik I hit faked him with my win32 API .chm and the peabrain goes for it. I follow it up with a salvo of left's and right's sending him down hard. It's lunch time and he's getting a Champ Sandwhich Special. I said, How's that Mr. VB?! Is that 'I wanna use COM in that Server enough for you?!' ...Ever since then, I've been the Champ.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups