Roland D

Hi,

after I've googelt endless hours, I hope I'll find an answer here.

I'm using DirectPlay for communication between clients and a server process. No we get troubles with the traffic on the network connection. So I've added a second network card and started the Serverprocess a second time (using the new IP-Adress).

But when executing:

DirectPlayServerCreate.Host AppDesc, DPAddress

an error occured (Automatisierungsfehler / automation error)

Here's the code in VB6:

=======================================
Dim AppDesc As DPN_APPLICATION_DESC
Dim lngErr As Long

Call Class_Terminate
With AppDesc
Select Case mServerNr
Case 2
.guidApplication = AppGuid2 'Guid created by GuidGen
Case Else
.guidApplication = AppGuid 'Guid created by GuidGen
End Select
.lMaxPlayers = 1000
.SessionName = "MyServer"
.lFlags = DPNSESSION_CLIENT_SERVER Or DPNSESSION_NODPNSVR
End With
Set DPServer = DX.DirectPlayServerCreate
Set DPAddress = DX.DirectPlayAddressCreate

DPServer.RegisterMessageHandler Me
DPAddress.SetSP DP8SP_TCPIP
DPAddress.AddComponentLong DPN_KEY_PORT, "28xxx" 'x as placeholder here
DPAddress.AddComponentString DPN_KEY_HOSTNAME, "192.x.x.x" 'x as placeholder here

DPServer.Host AppDesc, DPAddress 'here it crashes
===========================================

Thanks for your response in advance!

Roland




Re: Game Technologies: General Problem with executing two DirectPlay Server under DirectX8 on the same server

Jim Perry

It's unlikely you'll get much help on DirectPlay problems as it's no longer supported.