DirectPlay8 & VB.NET

Have you checked out the samples that come with the DX9 SDK? It looks like theres 5 samples plus 8 or so tutorials on DirectPlay. Its probably version 9, but its hard to say since the objects dont have numbers in them (its 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 wasnt a lot of community help for DPlay in VB6 youre 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 youre writing a game to be played on the MS Gaming Zone :p

-Ners
 
Back
Top