DirectPlay8 & VB.NET

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 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
 
Back
Top