Shannara Posted January 16, 2003 Posted January 16, 2003 Anybody have a sample of using VB.NET /w directplay 8? If so, I would be quite interested in it... Quote
*Experts* Nerseus Posted January 16, 2003 *Experts* Posted January 16, 2003 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 Quote "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
Shannara Posted January 16, 2003 Author Posted January 16, 2003 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 :) Quote
*Experts* Nerseus Posted January 16, 2003 *Experts* Posted January 16, 2003 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 Quote "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
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.