I am currently working in a group on a school project to create a Real Time Strategy game. I am trying to execute a game server program when one of the client's decides to 'Host' a game.
I am using the spawnl function. The problem is that the newly executed program runs in the same console program as the test client. The real client will be a Win32 app, so I don't know if it is truley an issue yet or not. But I would like to be able to separate my client and server into different console windows. Anyone have any ideas?
Code:spawnl(P_NOWAIT, "ServerMain.exe", "ServerMain.exe", strMapFilePath, iMaxPlayers, NULL );
iMaxPlayers is being used as a string, so no issues there.



LinkBack URL
About LinkBacks


