Comment compilé un programe en language C
pseudo11
-
Atropa Messages postés 1940 Date d'inscription Statut Membre Dernière intervention -
Atropa Messages postés 1940 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
j'ai trouver sur un forum un jeu assez debile sans aucun interet du moin a la base car quelqu'un a poster sur le forum un petit programe en language C ( enfin jcrois que c'est sa =p ) qu'il faut pour le faire marcher compilé ( transformer en language .exe )
( les parentheses c'est se qu'il a dis ... je sais pas si c'est vrai toussa chui un noob avec tous se qui concerne la programation )
ma question est donc simple je pense , comment compilé le programe en language C ?
pour info voici le copier coller du "programe" je sais pas si sa peux aider ^^
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
while(1)
{
INPUT inputevent;
inputevent.type = INPUT_KEYBOARD;
inputevent.ki.dwFlags = 0;
inputevent.ki.wVk = VK_LEFT;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
inputevent.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
inputevent.ki.dwFlags = 0;
inputevent.ki.wVk = VK_RIGHT;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
inputevent.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
}
return 0;
}
merci a ceux qui m'aiderons ^^
j'ai trouver sur un forum un jeu assez debile sans aucun interet du moin a la base car quelqu'un a poster sur le forum un petit programe en language C ( enfin jcrois que c'est sa =p ) qu'il faut pour le faire marcher compilé ( transformer en language .exe )
( les parentheses c'est se qu'il a dis ... je sais pas si c'est vrai toussa chui un noob avec tous se qui concerne la programation )
ma question est donc simple je pense , comment compilé le programe en language C ?
pour info voici le copier coller du "programe" je sais pas si sa peux aider ^^
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
while(1)
{
INPUT inputevent;
inputevent.type = INPUT_KEYBOARD;
inputevent.ki.dwFlags = 0;
inputevent.ki.wVk = VK_LEFT;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
inputevent.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
inputevent.ki.dwFlags = 0;
inputevent.ki.wVk = VK_RIGHT;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
inputevent.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1, &inputevent, sizeof(inputevent));
Sleep(100);
}
return 0;
}
merci a ceux qui m'aiderons ^^
A voir également:
- Comment compilé un programe en language C
- Windows display language french - Guide
- Vistalizator language pack windows 7 - Télécharger - Traduction
- Language binaire - Guide
- Autocad 2008 language pack french - Forum AutoCAD
- Programer un message sur iphone - Guide