Click here to Skip to main content
15,914,162 members
Home / Discussions / C#
   

C#

 
GeneralRe: Saving a collection of a class into form`s code. Pin
Heath Stewart22-Jun-04 20:11
protectorHeath Stewart22-Jun-04 20:11 
QuestionSuppress click at load??? Pin
betterc22-Jun-04 6:39
betterc22-Jun-04 6:39 
AnswerRe: Suppress click at load??? Pin
Heath Stewart22-Jun-04 8:02
protectorHeath Stewart22-Jun-04 8:02 
GeneralWindows Service Problem (Capture screen) Pin
Milos.Sakovic22-Jun-04 5:15
Milos.Sakovic22-Jun-04 5:15 
GeneralRe: Windows Service Problem (Capture screen) Pin
Heath Stewart22-Jun-04 6:22
protectorHeath Stewart22-Jun-04 6:22 
QuestionPropertyGrid for Remote object? Pin
zericsson22-Jun-04 5:15
zericsson22-Jun-04 5:15 
GeneralDirectPlay Pin
bouli22-Jun-04 4:32
bouli22-Jun-04 4:32 
GeneralRe: DirectPlay Pin
Heath Stewart22-Jun-04 4:57
protectorHeath Stewart22-Jun-04 4:57 
Have you looked in the DirectX SDK documentation for Managed Languages? All you need is either a NetworkPacket or a GCHandle (which you can create using any type). To use a NetworkPacket, all you have to do is pass a ValueType, which is any primative, enum, or struct (they all derive from ValueType).

So, to use a NetworkPackget:
using (NetworkPacket pkt = new NetworkPacket())
{
  pkt.Write(new Point(8, 8)); // Point is a struct; therefore, it is a ValueType
  client.Send(pkt, 0, SendFlags.Guaranteed); // Guaranteed delivery
}
If you're looking for a good resource on Managed DirectX, I highly recommend Managed DirectX 9 Kick Start: Graphics and Game Programming[^]. It's a good read and includes several chapters on DirectPlay. Honestly, though, it's not too tuff, especially after reading that book. It's certainly a lot easier than many .NET Remoting applications I've designed and help write!

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: DirectPlay Pin
bouli22-Jun-04 5:04
bouli22-Jun-04 5:04 
GeneralRe: DirectPlay Pin
Heath Stewart22-Jun-04 5:37
protectorHeath Stewart22-Jun-04 5:37 
GeneralRe: DirectPlay Pin
bouli22-Jun-04 5:24
bouli22-Jun-04 5:24 
GeneralRe: DirectPlay Pin
Heath Stewart22-Jun-04 8:51
protectorHeath Stewart22-Jun-04 8:51 
GeneralRe: DirectPlay Pin
bouli22-Jun-04 21:04
bouli22-Jun-04 21:04 
Generalplaying quicktime MOV and VR Pin
buffer_k.st22-Jun-04 3:52
buffer_k.st22-Jun-04 3:52 
GeneralRe: playing quicktime MOV and VR Pin
Heath Stewart22-Jun-04 4:49
protectorHeath Stewart22-Jun-04 4:49 
GeneralRe: playing quicktime MOV and VR Pin
buffer_k.st22-Jun-04 21:57
buffer_k.st22-Jun-04 21:57 
GeneralRe: playing quicktime MOV and VR Pin
Heath Stewart23-Jun-04 3:24
protectorHeath Stewart23-Jun-04 3:24 
GeneralRe: playing quicktime MOV and VR Pin
buffer_k.st23-Jun-04 6:20
buffer_k.st23-Jun-04 6:20 
GeneralOutlook Add-In in C# Pin
gek_at22-Jun-04 3:21
gek_at22-Jun-04 3:21 
GeneralRe: Outlook Add-In in C# Pin
Heath Stewart22-Jun-04 4:41
protectorHeath Stewart22-Jun-04 4:41 
GeneralRe: Outlook Add-In in C# Pin
gek_at22-Jun-04 6:10
gek_at22-Jun-04 6:10 
GeneralRe: Outlook Add-In in C# Pin
Heath Stewart22-Jun-04 6:14
protectorHeath Stewart22-Jun-04 6:14 
GeneralMonochrome instead of coloured cursors Pin
jjansen22-Jun-04 3:07
jjansen22-Jun-04 3:07 
GeneralRe: Monochrome instead of coloured cursors Pin
Heath Stewart22-Jun-04 4:33
protectorHeath Stewart22-Jun-04 4:33 
GeneralRe: Monochrome instead of coloured cursors Pin
leppie22-Jun-04 7:10
leppie22-Jun-04 7:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.