Zum Inhalt springen

invinciblegamerz

Mitglieder
  • Gesamte Inhalte

    6
  • Benutzer seit

  • Letzter Besuch

  1. Jo, das funktioniert ja auch. Nur das Icon oben links im Programm bleibt immer gleich. Wie kann ich das denn umändern? MfG
  2. Noch eine Frage: Kann man Konsolenanwendungen auch Icons geben? Ich habe Dev-C++, habe eine Resource File erstellt, aber wie kriege ich jetzt das Logo da rein? invincible-gamerz
  3. Ich habe ja schon mal mit der Konsolen-Programmierung angefangen und das lief auch ganz gut. Und da ich PHP beherrsche und die Konsolen-Programmierung dadurch kein Problem für mich war, hab ich mich gleich an die Windows-Programmierung rangesetzt. Danke Split, invincible-gamerz
  4. Hi, ich bin ein totaler Nap in Sachen C++, ich habe gerade erst angefangen. Jetzt habe ich folgenden Code...wie kann ich dem Fenster das Icon symbol16.ico (existiert schon) geben? #include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into a global variable */ char szClassName[ ] = "one"; int WINAPI WinMain (HINSTANCE hThisInstance, 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 = hThisInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = CS_DBLCLKS; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = NULL; /* 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 */ "[ig.] invincible-gamerz gamimg tool - v1.0 by RumbleFish", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL /* No Window Creation data */ ); /* 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_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; } invincible-gamerz
  5. lol, Xfire hab ich auch ;-) Aber ich wollte so was halt speziell für meine Seite haben, da viele kein Xfire haben und es langweilig finden.
  6. Hi, ich suche ein Programm bzw. einen Programmierer, der mir folgendes programmiert: Ich brauche ein Programm, welches ständig im Hintergrund läuft. Dieses liest ständig aus, ob z.B. hl.exe läuft. Läuft es, soll es eine Seite aufrufen, welche dann in die DB schreibt, dass das Programm läuft. Am besten noch, welcher Mod. Soo, das sollte dann auch für andere Spiele möglich sein. Ist sowas mit C++ möglich? Wenn ja, wer wäre so nett und programmiert mir das? ;-) MfG, invincible-gamerz

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...