Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

Have you checked out the samples that come with the DX9 SDK? It looks like there's 5 samples plus 8 or so tutorials on DirectPlay. It's probably version 9, but it's hard to say since the objects don't have numbers in them (it's just a DirectPlay object, for instance).

 

If you really want DirectPlay 8 using the DX8 SDK, you may be in for a hard road.

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted
they are directplay 9 :) Couldnt get a way for dp9 to communicate with vb6/dp8. soo... Either i use DP8 in VB.NET or I go back to using the more reliable Sockets :)
  • *Experts*
Posted

I converted a bunch of DX8 Direct3D code to C# and it worked quite well. I never tried DPlay, but it seems reasonable that it could be done (though unsupported to be sure). I used the Interop layer to expose the COM objects. For the most part, the "System.IntPtr" variables were "new System.IntPtr(0)" from in .NET. For everything else I used GCHandle.Alloc (I think it was) to get a pointer to a managed object. From the GCHandle you can get the System.IntPtr to pass around.

 

Since there wasn't a lot of community help for DPlay in VB6 you're in for a double treat - converted to C# or VB.NET and trying to get answers to a now outdated SDK :)

 

Or, just go with sockets which seems the general way to go anyway, unless you're writing a game to be played on the MS Gaming Zone :p

 

-Ners

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...