J´en recherche et j´en veut quand même des assez compétents car faire un jeu ZELDA/RPG ce n´est pas rien à programmer... Contactez moi à marcgamecenter@hotmail.com
13 ans ouarffffffff
Non 17ans en terminal je suis sur le pseudo de mon frère. Tu sais programmé en C++ au - avant de parler?
int main()
{
cout<<"OUI";
return 0;
}
Je demande pas un débutant qui c´est que écrire "oui" à l´écran ^^
// t.cpp : Defines the entry point for the application.
//
// Global Variables:
HINSTANCE hInst; // current instance
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text
// Foward declarations of functions included in this code module:
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
MSG msg;
HACCEL hAccelTable;
// Initialize global strings
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadString(hInstance, IDC_T, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance);
// Perform application initialization:
if ( !InitInstance ( hInstance, nCmdShow))
{
return FALSE;
}
hAccelTable = LoadAccelerators(hInstance, ( LPCTSTR)IDC_T);
// Main message loop:
while ( GetMessage(&, NULL, 0, 0))
{
if ( !TranslateAccelerator(msg.hwnd, hAccelTable, &))
{
TranslateMessage(&);
DispatchMessage(&);
}
}
return msg.wParam;
}
//
// FUNCTION: MyRegisterClass()
//
// PURPOSE: Registers the window class.
//
// COMMENTS:
//
// This function and its usage is only necessary if you want this code
// to be compatible with Win32 systems prior to the ´RegisterClassEx´
// function that was added to Windows 95. It is important to call this function
// so that the application will get ´well formed´ small icons associated
// with it.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = ( WNDPROC)WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, ( LPCTSTR)IDI_T);
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = ( HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = ( LPCSTR)IDC_T;
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance, ( LPCTSTR)IDI_SMALL);
return RegisterClassEx(&);
}
//
// FUNCTION: InitInstance(HANDLE, int)
//
// PURPOSE: Saves instance handle and creates main window
//
// COMMENTS:
//
// In this function, we save the instance handle in a global variable and
// create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
HWND hWnd;
hInst = hInstance; // Store instance handle in our global variable
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
if ( !hWnd)
{
return FALSE;
}
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
return TRUE;
}
//
// FUNCTION: WndProc(HWND, unsigned, WORD, LONG)
//
// PURPOSE: Processes messages for the main window.
//
// WM_COMMAND - process the application menu
// WM_PAINT - Paint the main window
// WM_DESTROY - post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
PAINTSTRUCT ps;
HDC hdc;
TCHAR szHello[MAX_LOADSTRING];
LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING);
switch ( message)
{
case WM_COMMAND:
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
// Parse the menu selections:
switch ( wmId)
{
case IDM_ABOUT:
DialogBox(hInst, ( LPCTSTR)IDD_ABOUTBOX, hWnd, ( DLGPROC)About);
break;
case IDM_EXIT:
DestroyWindow(hWnd);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
break;
case WM_PAINT:
hdc = BeginPaint(hWnd, &);
// TODO: Add any drawing code here...
RECT rt;
GetClientRect(hWnd, &);
DrawText(hdc, szHello, strlen(szHello), &, DT_CENTER);
Button b;
EndPaint(hWnd, &);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
MessageBox("FUCK");
return 0;
}
// Mesage handler for about box.
LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
switch ( message)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
if ( LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
}
break;
}
return FALSE;
}
a mon avis il va falloir prouver que c de toi ; -) nan je dis juste ca paske j´appreds le cpp et que les commentaires en francais je prefererai ca m´epargnerai du temps lol ^^
WHAOUUUUU SI TU C FAIRE LA CUISINE JE ME Fé PD.
é VLAN.
Mouais mais bon ca tu pe le prendre sur le net n´importe où meme plus complexe... Au mieu de me sortir ça ca tinteresserai?
On m´a dit qu´écrire en anglais c´était mieux ( de plus, tous les mots sont en anglais [for, do, main, . ..])
recordsman >>
1) je l´ai pris d´un programme que j´ai fait
2) non
3) essayes de prendre ton propre pseudo ( plutô que celui de ton frère)
4) désolé de te le rapeller, mais le bac pour toit c´est dans bientôt.
5) bonne chance
Oui
Du code source ! !!!!!!
voyons voir....
Pof rien a voir, c´est "Hello World" ! !
"Hello World" . ... Sans rire . ..
chimanp je crains que tu n´ai pompé ce code.
Bon c´est po grave. Allez quelque petites questions pour assoir ta stature de grand codeur devant l´eternel :
ATOM MyRegisterClass(HINSTANCE hInstance);
Pourquoi renvoyer l´Atom ?
Pourquoi ne pas tester que ta classe n´est pas deja enregistrée ?
Pourquoi ne pas de-enregistrer ta classe a la sortie ?
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
Qu´est ce que HINSTANCE hInstance ?
idem pour HINSTANCE hPrevInstance ?
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{....
. ...
. ...
MessageBox("FUCK");
return 0;
}
N´aurais tu pas des warning de compilation ( style dead code ? )
Alors un question complementaire.
Bon t´a un zoli fond d´application.
Maintenant ( en C toujours ) j´veux placer
sur ta classe ( nommé par l´ID IDC_T dans ton RC que tu donnes pas) un zoli fond d´ecran de type bitmap, et le faire tiler. Tu peux faire ca pour moue ?
recordsman :
Il a pas fait ecrire "oui" mais "OUI", c´est plus dur en majuscules . ..
"On m´a dit qu´écrire en anglais c´était mieux "
Les commentaires sont uniquement faits pour te relire et pour te retrouver dans ton code> soit la base de la programmation donc si tu t´amuses a chaque fois a tout retraduire pour esssayer de piger alors:
1. tu mens
2. t´es tout sauf pratique
Lol
Passage>> fait avec l´appliwizard ( en 30 secondes soit dit en passant) et fonctionne...
acidparadouze>>les commentaires sont aussi fait pour que les autres te comprennent, et lorsqu´on travail en "équipe" avec des canadiens ( anglophones), c´est plus pratique. Et je n´ai aucun problème avec l´anglais
le code de Chimamp c´est du MFC, et oui cela marche
Oula les filles qui s´y connaissent un minimum en programmation c´est ultra rare...
Qu´est ce que c´est que cette remarque?
On est six filles sur les 24 de ma classe ( certes, ma soeur elle est toute seule sur 20 personne, mais son école n´est pas aussi bien)