La Web del Programador: Comunidad de Programadores
 
    Pregunta:  62410 - COMO OCULTAR LA PANTALLA DE DOS
Autor:  Me JIm
Buenas!!
Alguien sabe como ocultar la ventana de DOS
El problema esta en que estoy creando una aplicacion en Windows API, pero cuando reproduzco un sonido este abre la pantalla de DOS y los ejecuta ahi!! Encima de la venta que ya habia creado...
Este es el codigo de sonido:


#include <windows.h>
#include <mmsystem.h>
#include <cstdlib>

using namespace std;

int main()
{

char soundfile[] = "E:/MUSIKA!/Musik dema variada/MUSICA DE MELY/MUSIC/MUSIK ANIME/Death Note Intro 1.wav" ;
PlaySound((LPCSTR)soundfile, NULL, SND_FILENAME | SND_ASYNC );

system("PAUSE");

return 0;
}

//Agregar el linker -lwinmm
//http://espanol.answers.yahoo.com/question/index?qid=20080607115406AAATFc8

  Respuesta:  Isaac Chido One
quita la sentencia: system("PAUSE");