M
Moshe Bergman
I am trying to launch Flight Simulator 2004, and have it connect to
localhost, I can do this in C++ but not on C#...
Here is my code:
ConnectInformation info = new ConnectInformation();
ConnectionSettings settings = new ConnectionSettings();
settings.HostAddress = new Microsoft.DirectX.DirectPlay.Address("127.0.0.1",
23456);;
Guid g = new Guid("0808caa5-e62c-4691-8957-5d4524b922da");
info.Flags = ConnectFlags.LaunchNew;
info.GuidApplication = g;
info.ConnectionSettings = settings;
info.UseConnectionSettings = false;
connectioninfo = theClient.ConnectApplication(info, 60000, null);
theClient.SetConnectionSettings(connectioninfo, settings);
if I change info.UseConnectionSettings to true, the program crashes, if it's
false, the program is launched but does not connect to the multiplayer.
Any help will be approciated,
Moshe Bergman
localhost, I can do this in C++ but not on C#...
Here is my code:
ConnectInformation info = new ConnectInformation();
ConnectionSettings settings = new ConnectionSettings();
settings.HostAddress = new Microsoft.DirectX.DirectPlay.Address("127.0.0.1",
23456);;
Guid g = new Guid("0808caa5-e62c-4691-8957-5d4524b922da");
info.Flags = ConnectFlags.LaunchNew;
info.GuidApplication = g;
info.ConnectionSettings = settings;
info.UseConnectionSettings = false;
connectioninfo = theClient.ConnectApplication(info, 60000, null);
theClient.SetConnectionSettings(connectioninfo, settings);
if I change info.UseConnectionSettings to true, the program crashes, if it's
false, the program is launched but does not connect to the multiplayer.
Any help will be approciated,
Moshe Bergman