Jump to content

Recommended Posts

Posted
So, Gamecop thinks his christ? Ha, John Lennon was christ.

And also a hippie, but so was Jesus. STAND-OFF!

  • Replies 49
  • Created
  • Last Reply

Top Posters In This Topic

Posted

#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

Posted
#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")

Posted

I love you taratatatatatatatatatatatatatatatata

Posted

I was tought to use C++ with cout, and printf just looks like a rip off of System.out,println(""); from java :lol:

 

Taratata !!! You complete me !!

 

Me <3 Taratata

Posted
I was tought to use C++ with cout, and printf just looks like a rip off of System.out,println(""); from java :lol:

 

Taratata !!! You complete me !!

 

Me <3 Taratata

Actually, it's the other way round. Java inspired its System.out.println from C's printf.

And what do you mean I complete you???

Posted

Lol it's a joke dude, and I just remembered the dates of each languages creation, oops lol.

 

GC, if you really want idea's, well then, look for an idealist???

 

(Trying as hard as I can to stay on topic)

Posted

u guys r killing gamecop by going off topic. he just came back from the dead. we don't want him dead again

Posted

I'm slowly rising from the grave.....

 

Be sure to see some very serious updates on 1Emulation.

You'll see things questionable, but for every effect has a cause. :devilboy:

Posted

Cause he is thriller!! THRILLER!

 

These serious updates are scaring me...I wonder what could be questionable about it...

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...