   Open an executable without a CMD window.
  Using:WinExec("\".\\a17271.exe\" -L -S",SW_SHOWNORMAL);to start my application it also opens an CMD window, how can I just open a17271 without the CMD window also popping up behind it.Thanks,Andrew   
WinExec is deprecated and should not be used. Instead, try CreateProcess.However, I suspect that the problem isn't in the way you launch the app, but the fault of the app itself. If you run that .EXE from, say, Explorer, does the console window also appear? My guess is that the app itself creates the console and what you really need to do is turn that off in the app code itself.   ;  I think Apoch is probably right, but I'd just like to add that unless you're trying to release this game, it might be good to have the console window pop up anyway. It can make debugging easier.   