Jump to content

Back from the dead!


Alpha

Recommended Posts

  • Replies 49
  • Created
  • Last Reply

Top Posters In This Topic

I think I'm going to have to ask that this thread get back on topic. Whatever the original topic was...what was it?

Something about GameCop getting back his will to live, or something.

Link to comment
Share on other sites

I think I'm going to have to ask that this thread get back on topic. Whatever the original topic was...what was it?

Something about GameCop getting back his will to live, or something.

Yeah, I guess at some point he died. Then he came back to life three days later or something.

Link to comment
Share on other sites

#include <stdio.h>

 

void main()

{

printf ("Why does everyone use cout when printf is so much easier?\n");

printf ("lol\n");

}

 

Oh and GC

 

#include "gc.h" (This has windows.h and a resource file in it)

 

LRESULT CALLACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam);

 

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, hPrevInstance, PSTR szCmdLine, int iCmdShow)

{

static TCHAR szAppName[] = TEXT("Gcs Message");

WNDCLASSEX wndclass;

HWND hWindow;

MSG msg;

 

wndclass.cbSize = sizeof(wndclass);

wndclass.style = CS_HREDRAW | CS_VREDRAW;

wndclass.lpfnwWndProc = WndProc;

wndclass.cbClsExtra = 0;

wndclass.dcWndExtra = 0;

wndclass.hInstance = hInstance;

wndclass.hIcon = LoadIcon(hInstance,

MAKEINTORESOURCE(IDI_GC));

wndclass.hIconSm = LoadIcon(hInstance,

MAKEINTORESOURCE(IDI_GCSM));

wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);

wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);

wndclass.lpszMenuName = NULL;

wndclass.lpszClassName = szAppName;

 

if (!RegisterClassEx(&wndclass))

return 0;

 

hWindow = CreateWindow(szAppName, szAppName, WSOVERLAPPEDWINDOW, CW_USERDEFAULT, CW_USERDEFAULT, CW_USERDEFAULT, CW_USERDEFAULT, NULL, NULL, hInstance, NULL);

 

ShowWindow(hWindow, iCmdShow);

UpdateWindow(hWindow);

 

while (GetMessage(&msg, NULL, 0, 0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

return (int)msg.wParam;

}

 

LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam)

{

HDC hDC;

PAINTSTRUCT ps;

RECT rect;

 

switch(msg)

{

case WM_PAINT:

hDC = BeginPaint(hWindow, &ps);

GetClientRect(hWindow, &rect);

DrawText(hDC, TEXT("Wow GC good to see your still alive and hope the forum is greatly improved... also sorry for this huge post), -1, &rect, DT_SINGLELINE | DT_CENTER | DT_VCENTER);

EndPaint(hWindow, &ps);

return 0;

 

case WM_DESTROY:

PostQuitMessage(0);

return 0;

 

}

return DefWindowProc(hWindow, msg, wParam, lParam);

}

 

God i hate windows

Link to comment
Share on other sites

#include <stdio.h>

 

void main()

{

      printf ("Why does everyone use cout when printf is so much easier?\n");

      printf ("lol\n");

}

 

Oh and GC

 

#include "gc.h" (This has windows.h and a resource file in it)

 

LRESULT CALLACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam);

 

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, hPrevInstance, PSTR szCmdLine, int iCmdShow)

{

    static  TCHAR    szAppName[] = TEXT("Gcs Message");

    WNDCLASSEX    wndclass;

    HWND              hWindow;

    MSG                msg;

 

    wndclass.cbSize                        = sizeof(wndclass);

    wndclass.style                          = CS_HREDRAW | CS_VREDRAW;

    wndclass.lpfnwWndProc              = WndProc;

    wndclass.cbClsExtra                  = 0;

    wndclass.dcWndExtra                = 0;

    wndclass.hInstance                  = hInstance;

    wndclass.hIcon                        = LoadIcon(hInstance,

        MAKEINTORESOURCE(IDI_GC));

    wndclass.hIconSm                    = LoadIcon(hInstance,

        MAKEINTORESOURCE(IDI_GCSM));

    wndclass.hCursor                      = LoadCursor(NULL, IDC_ARROW);

    wndclass.hbrBackground            = (HBRUSH)(COLOR_WINDOW + 1);

    wndclass.lpszMenuName            = NULL;

    wndclass.lpszClassName            = szAppName;

   

    if (!RegisterClassEx(&wndclass))

        return 0;

 

    hWindow = CreateWindow(szAppName, szAppName, WSOVERLAPPEDWINDOW, CW_USERDEFAULT, CW_USERDEFAULT, CW_USERDEFAULT, CW_USERDEFAULT, NULL, NULL, hInstance, NULL);

 

    ShowWindow(hWindow, iCmdShow);

    UpdateWindow(hWindow);

 

    while (GetMessage(&msg, NULL, 0, 0))

    {

          TranslateMessage(&msg);

          DispatchMessage(&msg);

      }

      return (int)msg.wParam;

}

 

LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam)

{

      HDC                hDC;

      PAINTSTRUCT  ps;

      RECT              rect;

 

      switch(msg)

      {

          case WM_PAINT:

                hDC = BeginPaint(hWindow, &ps);

                GetClientRect(hWindow, &rect);

                DrawText(hDC, TEXT("Wow GC good to see your still alive and hope the forum is greatly improved... also sorry for this huge post), -1, &rect, DT_SINGLELINE | DT_CENTER | DT_VCENTER);

                EndPaint(hWindow, &ps);

                return 0;

   

          case WM_DESTROY:

                PostQuitMessage(0);

                return 0;

 

      }

      return DefWindowProc(hWindow, msg, wParam, lParam);

}

 

God i hate windows

my fingers are too used to cout << "string" and Console.WriteLine("string")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...