Skocz do zawartości

Mati98Hautameki

Użytkownicy
  • Postów

    19
  • Dołączył

  • Ostatnia wizyta

O Mati98Hautameki

  • Urodziny 26.05.1998

O mnie

Osiągnięcia Mati98Hautameki

Chicken

Chicken (1/13)

0

Reputacja

  1. Tu macie całą tablicę ASCII (kolumna DEC) http://ascii-code.com/
  2. No ale działa. I jest ASCII.
  3. Masz tu cały kod ASCII #include <iostream> using namespace std; int main() { for(int z=-255; z<255; z++) { cout << z << " " << char(z) << "." << endl; } system("pause"); return 0; }
  4. Mam taki kod: #include <windows.h> #include <commctrl.h> #include <iostream> #include "menu.h" HWND hListBox; /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into a global variable */ char szClassName[ ] = "WindowsApp"; int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = 0; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (hInstance, "IKONA"); wincl.hIconSm = LoadIcon (hInstance, "IKONA"); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = "MAIN"; /* No menu */ wincl.cbClsExtra = 0; /* No extra bytes after the window class */ wincl.cbWndExtra = 0; /* structure or the window instance */ /* Use Windows's default color as the background of the window */ wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND; /* Register the window class, and if it fails quit the program */ if (!RegisterClassEx (&wincl)) return 0; /* The class is registered, let's create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Informator MN", /* Title Text */ WS_SYSMENU, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 320, /* The programs width */ 240, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hInstance, /* Program Instance handler */ NULL /* No Window Creation data */ ); RECT rcl; GetClientRect( hwnd, & rcl ); hListBox = CreateWindowEx( WS_EX_CLIENTEDGE, "COMBOBOX", "STATIC", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL, 0, 0, 320, 240, hwnd, NULL, hInstance, NULL ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'informator' 28.05.2012" ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'minecraft' 27.05.2012" ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'terraria' 27.05.2012" ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'programy' 27.05.2012" ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'gry' 27.05.2012" ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'windows mini' 27.05.2012" ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'kontakt' 27.05.2012" ); SendMessage( hListBox, CB_ADDSTRING, 0,( LPARAM ) "Dodana strona 'strona główna' 27.05.2012" ); /* Make the window visible on the screen */ ShowWindow (hwnd, nFunsterStil); /* Run the message loop. It will run until GetMessage() returns 0 */ while (GetMessage (&messages, NULL, 0, 0)) { /* Translate virtual-key messages into character messages */ TranslateMessage(&messages); /* Send message to WindowProcedure */ DispatchMessage(&messages); } /* The program return-value is 0 - The value that PostQuitMessage() gave */ return messages.wParam; } /* This function is called by the Windows function DispatchMessage() */ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) /* handle the messages */ { case WM_COMMAND: if((HWND)lParam == hListBox) { // Pobranie akutalnie zaznaczonego elementu int iWybor = SendMessage(hListBox, CB_GETCURSEL, 0, 0); switch(iWybor) { case 0: system("start http://cpp0x.pl/kursy/Kurs-WinAPI-C++/Kontrolki/Drzewo-TreeView/206"); break; } } break; case WM_DESTROY: PostQuitMessage (0); /* send a WM_QUIT to the message queue */ break; default: /* for messages that we don't deal with */ return DefWindowProc (hwnd, message, wParam, lParam); } return 0; } Co zrobic, żeby jak nacisnę na coś, to żeby tylko raz się włączała strona?
  5. Dziwna ta gra. Na twoim chomiku było: >Blocks World Beta 1.00.exe Wersja z: Działającymi npc Interfejsem Kraftingiem I wiele innych... Gdzie te NPC?
  6. Która wersja?? Normalna, czy poprawiona??
  7. Kliknąłem pierwszy lepszy blok i się wyłączył. Grafika może byc. Daje 3/5.
  8. Mati98Hautameki

    2D Crafter

    Ten twój Minecraft to większe badziewie od mojego
  9. To nie był żart, tylko gra za bardzo zamula.
  10. Ja aktualnie pracuję nad Dark Warrior (Mieszanka Diablo II i Gladiatusa)
×
×
  • Dodaj nową pozycję...