Ver Mensaje Individual
  #11 (permalink)  
Antiguo 05/11/2006, 09:31
pedro_cesar
 
Fecha de Ingreso: septiembre-2006
Mensajes: 328
Antigüedad: 18 años, 5 meses
Puntos: 3
Antes k nada, MUCHAS GRACIAS por tu tiempo, pero todavia no compila.

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {

FILE *file;
char string [15] = "Mi programa\n";
int cont;

file = fopen ("C:\\XeV.txt", "w");

cont =1;

do {

fputs (string, file);

cont++;

} while (cont <=10);
fclose (file);
return 0;
}


-------------------------------------------------------------------------------------
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Pedro.CHANGE\My Documents\Documentos\C++\Otros\Virus\Disco Duro\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\Pedro.CHANGE\My Documents\Documentos\C++\Otros\Virus\Disco Duro\Makefile.win" all
gcc.exe -c Virus.c -o Virus.o -I"C:/Dev-Cpp/include"

Virus.c:5: error: conflicting types for 'WinMain'
C:/Dev-Cpp/include/winbase.h:1040: error: previous declaration of 'WinMain' was here
Virus.c:5: error: conflicting types for 'WinMain'
C:/Dev-Cpp/include/winbase.h:1040: error: previous declaration of 'WinMain' was here

make.exe: *** [Virus.o] Error 1

Execution terminated

Última edición por pedro_cesar; 05/11/2006 a las 09:41