Talkingi wan tto code

Posts 1–13 of 13 · Page 1 of 1
i wan tto code
gibe me something to write that isnt gaem hakcing related- just a c++ challeng. i need sumtinge to rite in my free time
OH REALLY? LOL
ok then, i will give you a challenge and when you're done send it to me like the whole project file and i will check it and give you a rating out of 10 deal?

CHALLENGE:
CREATE AN INVITATION PROGRAM (YES THATS ALL I COULD THINK OF)

RULES:
1). must check your age, no younger than 18 not older than 30.
2). check that you are from Canada or America, if anywhere else gives you an error and closes the program.
3). checks if your address is a valid format. xxx street name (x stands for street number)
4). checks if you entered a valid e-mail address. @Hotmail, @yahoo, @gmail are the supported types.

Ask the entries in this order,

Name, Age, Address, E-mail address

So yeah there's a challenge for you
Quote Originally Posted by kissofdiss View Post
OH REALLY? LOL
ok then, i will give you a challenge and when you're done send it to me like the whole project file and i will check it and give you a rating out of 10 deal?

CHALLENGE:
CREATE AN INVITATION PROGRAM (YES THATS ALL I COULD THINK OF)

RULES:
1). must check your age, no younger than 18 not older than 30.
2). check that you are from Canada or America, if anywhere else gives you an error and closes the program.
3). checks if your address is a valid format. xxx street name (x stands for street number)
4). checks if you entered a valid e-mail address. @Hotmail, @yahoo, @gmail are the supported types.

Ask the entries in this order,

Name, Age, Address, E-mail address

So yeah there's a challenge for you
2 eesey
completed in 20 or 30 mins

onle resun it tuk dat long was cuz i had to constently luk up shite in the standerd libaries cuz ive only used c++ for 2 weeks on and of f, and dat was 6 months ago . i relly rememberd non eof the STL and it sukced .

i was hoping sum1 wud gibe me an idea 4 a interesting toy programing langugedge 2 rite an interpreteder 4 (hint hinttt pls)

no project necesaery, here is coeds

editeded: well ull hav 2 fix the emael strigns in teh program urself becuz this demented bbcode parser desided 2 rewrite teh email suffixes INSIDE code tags. jsut compile it urself, ull see wer teh error vbulletin cuases is

Code:
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
//aditional functiones, for the usages of using quickly the long line smally
void loower(string strong) {
	transform(strong.begin(),strong.end(),strong.begin(),::tolower);
}
void abert(string strong) { cerr<<strong<<endl; exit(1); }
void pln(string strong) { cout<<strong<<endl; }
bool validchar(char lol) {
	return (lol>='0'&&lol<='9')
			||(lol>='a'&&lol<='z')
			||(lol>='A'&&lol<='Z')
			||lol=='.'||lol=='_'
			||lol=='-'||lol=='+';
}
int main() {
	int aeg;
	//<br>
	//the above are an additional break of lines, for to line up an additonal line between the lines for a line taller
	pln("gibe me aeg");
	cin>>aeg;
	cin.ignore();
	if(aeg<18||aeg>30) abert("UR NOT TEH RITE AGE FAGET ur note beteen 18 an 30");
	pln("wer u frum faget");
	char* badcuntries_[] = {//huehuehue warnings
		"america",
		"usa",
		"canada",
		"zimbabwe"//zimbabwe has infiltraded
	};
	vector<string> badcuntries(badcuntries_, badcuntries_+4);
	
	string hoemtownland;
	getline(cin,hoemtownland);
	loower(hoemtownland);
	for(int i=0;i<badcuntries.size();++i)
		if(!hoemtownland.compare(badcuntries[i]))
			goto yoloswaglol;
	abert("UR NOT SUPOSED 2 LIV DER STUPED");//ill fukken kill ur hole family
	yoloswaglol://i used a goto r u flabergasted yet
	
	//since <regex>es arent even implelemented yet i hav 2 do tihs retarded shite
	pln("gibe me street");
	string adres;
	getline(cin,adres);
	char* hue=(char*)adres.data();
	int i;//hav 2 delcer outsid lup
	for(i=0;hue[i]>='0'&&hue[i]<='9';++i);
	if(i<3||hue[i]!=' ') abert("UR STRET NAM IS RETERTED");//street nam was never spesified to be alfabetic umad
	pln("gibe emael");
	string emael;
	getline(cin,emael);
	hue=(char*)emael.data();
	//yea wen i saw the email part i was lik fuk dat
	//do u even realiz how annoying itd be to guarntee a valid emal
	//so thsi is a subbset of valid emaels (most emaels)
	for(i=0;validchar(hue[i]);++i);
	char* gudemaels_[] = {//huehuehue warnings
		 @Hotmail.com",
		 @yahoo.com",
		"@gmail.com"
	};
	vector<string> gudemaels(gudemaels_,gudemaels_+3);
	for(int j=0;j<gudemaels.size();++j)
		if(!string(hue+i).compare(gudemaels[j]))
			goto lolwenistehvelociraptorcomin2kilme;
	abert("NOOO UR EMAIL SUX FAGET");
	lolwenistehvelociraptorcomin2kilme:
	pln("well done ur not retarded");
	return 0;
}
// .i zo'onai xo'o mi kakne lonu do citka lo plise
Quote Originally Posted by Shanks_ View Post
2 eesey
completed in 20 or 30 mins

onle resun it tuk dat long was cuz i had to constently luk up shite in the standerd libaries cuz ive only used c++ for 2 weeks on and of f, and dat was 6 months ago . i relly rememberd non eof the STL and it sukced .

i was hoping sum1 wud gibe me an idea 4 a interesting toy programing langugedge 2 rite an interpreteder 4 (hint hinttt pls)

no project necesaery, here is coeds

editeded: well ull hav 2 fix the emael strigns in teh program urself becuz this demented bbcode parser desided 2 rewrite teh email suffixes INSIDE code tags. jsut compile it urself, ull see wer teh error vbulletin cuases is

Code:
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
//aditional functiones, for the usages of using quickly the long line smally
void loower(string strong) {
	transform(strong.begin(),strong.end(),strong.begin(),::tolower);
}
void abert(string strong) { cerr<<strong<<endl; exit(1); }
void pln(string strong) { cout<<strong<<endl; }
bool validchar(char lol) {
	return (lol>='0'&&lol<='9')
			||(lol>='a'&&lol<='z')
			||(lol>='A'&&lol<='Z')
			||lol=='.'||lol=='_'
			||lol=='-'||lol=='+';
}
int main() {
	int aeg;
	//<br>
	//the above are an additional break of lines, for to line up an additonal line between the lines for a line taller
	pln("gibe me aeg");
	cin>>aeg;
	cin.ignore();
	if(aeg<18||aeg>30) abert("UR NOT TEH RITE AGE FAGET ur note beteen 18 an 30");
	pln("wer u frum faget");
	char* badcuntries_[] = {//huehuehue warnings
		"america",
		"usa",
		"canada",
		"zimbabwe"//zimbabwe has infiltraded
	};
	vector<string> badcuntries(badcuntries_, badcuntries_+4);
	
	string hoemtownland;
	getline(cin,hoemtownland);
	loower(hoemtownland);
	for(int i=0;i<badcuntries.size();++i)
		if(!hoemtownland.compare(badcuntries[i]))
			goto yoloswaglol;
	abert("UR NOT SUPOSED 2 LIV DER STUPED");//ill fukken kill ur hole family
	yoloswaglol://i used a goto r u flabergasted yet
	
	//since <regex>es arent even implelemented yet i hav 2 do tihs retarded shite
	pln("gibe me street");
	string adres;
	getline(cin,adres);
	char* hue=(char*)adres.data();
	int i;//hav 2 delcer outsid lup
	for(i=0;hue[i]>='0'&&hue[i]<='9';++i);
	if(i<3||hue[i]!=' ') abert("UR STRET NAM IS RETERTED");//street nam was never spesified to be alfabetic umad
	pln("gibe emael");
	string emael;
	getline(cin,emael);
	hue=(char*)emael.data();
	//yea wen i saw the email part i was lik fuk dat
	//do u even realiz how annoying itd be to guarntee a valid emal
	//so thsi is a subbset of valid emaels (most emaels)
	for(i=0;validchar(hue[i]);++i);
	char* gudemaels_[] = {//huehuehue warnings
		 @Hotmail.com",
		 @yahoo.com",
		"@gmail.com"
	};
	vector<string> gudemaels(gudemaels_,gudemaels_+3);
	for(int j=0;j<gudemaels.size();++j)
		if(!string(hue+i).compare(gudemaels[j]))
			goto lolwenistehvelociraptorcomin2kilme;
	abert("NOOO UR EMAIL SUX FAGET");
	lolwenistehvelociraptorcomin2kilme:
	pln("well done ur not retarded");
	return 0;
}
// .i zo'onai xo'o mi kakne lonu do citka lo plise
hahahahhaha i read the code and i like the way you asked for the information haha it was hilarious
tri 2 mak a prugram tht shoots poop all ovr da screen whn u opn it.
Quote Originally Posted by kissofdiss View Post
hahahahhaha i read the code and i like the way you asked for the information haha it was hilarious
thx man

Quote Originally Posted by Pillows and Poo View Post
tri 2 mak a prugram tht shoots poop all ovr da screen whn u opn it.
that is the highley inappropriets . wud not maek
Quote Originally Posted by Pillows and Poo View Post
tri 2 mak a prugram tht shoots poop all ovr da screen whn u opn it.
fuken chanleng acepted


---------- Post added at 08:24 PM ---------- Previous post was at 07:48 PM ----------

I DID POOP
Code:
#include <Windows.h>
#include <stdlib.h>
#include <time.h>
LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch( msg )
    {
    case WM_CLOSE:
        ShowWindow(hWnd, SW_HIDE);
        DestroyWindow(hWnd);
        break;

    case WM_PAINT:
        {
            HDC hdc = GetDC(0);
            HDC bdc = CreateCompatibleDC(hdc);
            HBITMAP bitmap = CreateCompatibleBitmap(hdc, 1000, 1000);

            int height = -MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72);

            HFONT font = CreateFont(
                height, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
                DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
                ANTIALIASED_QUALITY, FF_DONTCARE, L"Arial");



            
			for(int i = 0; i < 1000; i++){
				HGDIOBJ oldbm = SelectObject(bdc, bitmap);
				HGDIOBJ oldft = SelectObject(bdc, font);
				int x = rand()%1000;
				int y = rand()%1000;
				RECT rc;
				SetRect(&rc,x,y,x+40,y+20);
				
            //FillRect(bdc, &rc, (HBRUSH)GetStockObject(WHITE_BRUSH))
				DrawTextA(bdc, "POOP", 19, &rc, DT_LEFT|DT_EDITCONTROL);
				BitBlt(hdc, 0, 0, 1000, 1000, bdc, 0, 0, SRCCOPY);
				            SelectObject(bdc, oldbm);
            SelectObject(bdc, oldft);
			}
            


            DeleteObject(bitmap);
            DeleteObject(font);
            DeleteDC(bdc);
        }
        return 1;

    case WM_DESTROY:
        PostQuitMessage(0);
        return 0;

    case WM_KEYUP:
        switch(wParam)
        {
        case VK_ESCAPE:
            SendMessage(hWnd, WM_CLOSE, 0, 0);
            break;
        }
        break;

    default:
        break;
    }

    return DefWindowProc(hWnd, msg, wParam, lParam);
}

INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd)
{
    HWND hwnd = 0;
	srand(time(NULL));
    WNDCLASSEX wc =
    {
        sizeof(WNDCLASSEX),
        CS_CLASSDC,
        (WNDPROC)WndProc,
        0L, 0L,
        hInst,
        NULL, NULL, NULL, NULL,
        L"huehue", NULL
    };

    RegisterClassEx(&wc);

    int w = GetSystemMetrics(0);
    int h = GetSystemMetrics(1);

    DWORD style = WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_SYSMENU|WS_BORDER|WS_CAPTION;

    hwnd = CreateWindowA("huehue", "POOP", style,
        (w - 400) / 2, (h - 200) / 2, 400, 200,
        NULL, NULL, wc.hInstance, NULL);

    if( !hwnd )
    {
        MessageBoxA(NULL, "Could not create window!", "Error!", MB_OK);
        goto _end;
    }

    ShowWindow(hwnd, SW_SHOWDEFAULT);
    UpdateWindow(hwnd);

    MSG msg;
    ZeroMemory(&msg, sizeof(msg));

    while( msg.message != WM_QUIT )
    {
        while( PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE) )
        {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }
    }

_end:
    UnregisterClassA("huehue", wc.hInstance);
    return 0;
}
Quote Originally Posted by Saltine View Post

fuken chanleng acepted


---------- Post added at 08:24 PM ---------- Previous post was at 07:48 PM ----------

I DID POOP
Code:
#include <Windows.h>
#include <stdlib.h>
#include <time.h>
LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch( msg )
    {
    case WM_CLOSE:
        ShowWindow(hWnd, SW_HIDE);
        DestroyWindow(hWnd);
        break;

    case WM_PAINT:
        {
            HDC hdc = GetDC(0);
            HDC bdc = CreateCompatibleDC(hdc);
            HBITMAP bitmap = CreateCompatibleBitmap(hdc, 1000, 1000);

            int height = -MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72);

            HFONT font = CreateFont(
                height, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
                DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
                ANTIALIASED_QUALITY, FF_DONTCARE, L"Arial");



            
			for(int i = 0; i < 1000; i++){
				HGDIOBJ oldbm = SelectObject(bdc, bitmap);
				HGDIOBJ oldft = SelectObject(bdc, font);
				int x = rand()%1000;
				int y = rand()%1000;
				RECT rc;
				SetRect(&rc,x,y,x+40,y+20);
				
            //FillRect(bdc, &rc, (HBRUSH)GetStockObject(WHITE_BRUSH))
				DrawTextA(bdc, "POOP", 19, &rc, DT_LEFT|DT_EDITCONTROL);
				BitBlt(hdc, 0, 0, 1000, 1000, bdc, 0, 0, SRCCOPY);
				            SelectObject(bdc, oldbm);
            SelectObject(bdc, oldft);
			}
            


            DeleteObject(bitmap);
            DeleteObject(font);
            DeleteDC(bdc);
        }
        return 1;

    case WM_DESTROY:
        PostQuitMessage(0);
        return 0;

    case WM_KEYUP:
        switch(wParam)
        {
        case VK_ESCAPE:
            SendMessage(hWnd, WM_CLOSE, 0, 0);
            break;
        }
        break;

    default:
        break;
    }

    return DefWindowProc(hWnd, msg, wParam, lParam);
}

INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd)
{
    HWND hwnd = 0;
	srand(time(NULL));
    WNDCLASSEX wc =
    {
        sizeof(WNDCLASSEX),
        CS_CLASSDC,
        (WNDPROC)WndProc,
        0L, 0L,
        hInst,
        NULL, NULL, NULL, NULL,
        L"huehue", NULL
    };

    RegisterClassEx(&wc);

    int w = GetSystemMetrics(0);
    int h = GetSystemMetrics(1);

    DWORD style = WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_SYSMENU|WS_BORDER|WS_CAPTION;

    hwnd = CreateWindowA("huehue", "POOP", style,
        (w - 400) / 2, (h - 200) / 2, 400, 200,
        NULL, NULL, wc.hInstance, NULL);

    if( !hwnd )
    {
        MessageBoxA(NULL, "Could not create window!", "Error!", MB_OK);
        goto _end;
    }

    ShowWindow(hwnd, SW_SHOWDEFAULT);
    UpdateWindow(hwnd);

    MSG msg;
    ZeroMemory(&msg, sizeof(msg));

    while( msg.message != WM_QUIT )
    {
        while( PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE) )
        {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }
    }

_end:
    UnregisterClassA("huehue", wc.hInstance);
    return 0;
}
u did a gud job . man dats sum of gud code .
Quote Originally Posted by Saltine View Post

fuken chanleng acepted


---------- Post added at 08:24 PM ---------- Previous post was at 07:48 PM ----------

I DID POOP
Code:
#include <Windows.h>
#include <stdlib.h>
#include <time.h>
LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch( msg )
    {
    case WM_CLOSE:
        ShowWindow(hWnd, SW_HIDE);
        DestroyWindow(hWnd);
        break;

    case WM_PAINT:
        {
            HDC hdc = GetDC(0);
            HDC bdc = CreateCompatibleDC(hdc);
            HBITMAP bitmap = CreateCompatibleBitmap(hdc, 1000, 1000);

            int height = -MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72);

            HFONT font = CreateFont(
                height, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
                DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
                ANTIALIASED_QUALITY, FF_DONTCARE, L"Arial");



            
			for(int i = 0; i < 1000; i++){
				HGDIOBJ oldbm = SelectObject(bdc, bitmap);
				HGDIOBJ oldft = SelectObject(bdc, font);
				int x = rand()%1000;
				int y = rand()%1000;
				RECT rc;
				SetRect(&rc,x,y,x+40,y+20);
				
            //FillRect(bdc, &rc, (HBRUSH)GetStockObject(WHITE_BRUSH))
				DrawTextA(bdc, "POOP", 19, &rc, DT_LEFT|DT_EDITCONTROL);
				BitBlt(hdc, 0, 0, 1000, 1000, bdc, 0, 0, SRCCOPY);
				            SelectObject(bdc, oldbm);
            SelectObject(bdc, oldft);
			}
            


            DeleteObject(bitmap);
            DeleteObject(font);
            DeleteDC(bdc);
        }
        return 1;

    case WM_DESTROY:
        PostQuitMessage(0);
        return 0;

    case WM_KEYUP:
        switch(wParam)
        {
        case VK_ESCAPE:
            SendMessage(hWnd, WM_CLOSE, 0, 0);
            break;
        }
        break;

    default:
        break;
    }

    return DefWindowProc(hWnd, msg, wParam, lParam);
}

INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd)
{
    HWND hwnd = 0;
	srand(time(NULL));
    WNDCLASSEX wc =
    {
        sizeof(WNDCLASSEX),
        CS_CLASSDC,
        (WNDPROC)WndProc,
        0L, 0L,
        hInst,
        NULL, NULL, NULL, NULL,
        L"huehue", NULL
    };

    RegisterClassEx(&wc);

    int w = GetSystemMetrics(0);
    int h = GetSystemMetrics(1);

    DWORD style = WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_SYSMENU|WS_BORDER|WS_CAPTION;

    hwnd = CreateWindowA("huehue", "POOP", style,
        (w - 400) / 2, (h - 200) / 2, 400, 200,
        NULL, NULL, wc.hInstance, NULL);

    if( !hwnd )
    {
        MessageBoxA(NULL, "Could not create window!", "Error!", MB_OK);
        goto _end;
    }

    ShowWindow(hwnd, SW_SHOWDEFAULT);
    UpdateWindow(hwnd);

    MSG msg;
    ZeroMemory(&msg, sizeof(msg));

    while( msg.message != WM_QUIT )
    {
        while( PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE) )
        {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }
    }

_end:
    UnregisterClassA("huehue", wc.hInstance);
    return 0;
}
DAYUM HW U DO DAT
Learn to spell before you learn to code. Also why did you use vectors.
Quote Originally Posted by Gab View Post
Learn to spell before you learn to code. Also why did you use vectors.
becuz vectors r gr8 yo
What the fuck happened to this section..

Does this section really need 2 or 3 guys acting like 14years old retards?
Rofl wdf?

"#include <Windows.h>
#include <stdlib.h>
#include <time.h>
LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch( msg )
{
case WM_CLOSE:
ShowWindow(hWnd, SW_HIDE);
DestroyWindow(hWnd);
break;

case WM_PAINT:
{
HDC hdc = GetDC(0);
HDC bdc = CreateCompatibleDC(hdc);
HBITMAP bitmap = CreateCompatibleBitmap(hdc, 1000, 1000);

int height = -MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72);

HFONT font = CreateFont(
height, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
ANTIALIASED_QUALITY, FF_DONTCARE, L"Arial");




for(int i = 0; i < 1000; i++){
HGDIOBJ oldbm = SelectObject(bdc, bitmap);
HGDIOBJ oldft = SelectObject(bdc, font);
int x = rand()%1000;
int y = rand()%1000;
RECT rc;
SetRect(&rc,x,y,x+40,y+20);

//FillRect(bdc, &rc, (HBRUSH)GetStockObject(WHITE_BRUSH))
DrawTextA(bdc, "POOP", 19, &rc, DT_LEFT|DT_EDITCONTROL);
BitBlt(hdc, 0, 0, 1000, 1000, bdc, 0, 0, SRCCOPY);
SelectObject(bdc, oldbm);
SelectObject(bdc, oldft);
}



DeleteObject(bitmap);
DeleteObject(font);
DeleteDC(bdc);
}
return 1;

case WM_DESTROY:
PostQuitMessage(0);
return 0;

case WM_KEYUP:
switch(wParam)
{
case VK_ESCAPE:
SendMessage(hWnd, WM_CLOSE, 0, 0);
break;
}
break;

default:
break;
}

return DefWindowProc(hWnd, msg, wParam, lParam);
}

INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd)
{
HWND hwnd = 0;
srand(time(NULL));
WNDCLASSEX wc =
{
sizeof(WNDCLASSEX),
CS_CLASSDC,
(WNDPROC)WndProc,
0L, 0L,
hInst,
NULL, NULL, NULL, NULL,
L"huehue", NULL
};

RegisterClassEx(&wc);

int w = GetSystemMetrics(0);
int h = GetSystemMetrics(1);

DWORD style = WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_SYSMENU|WS_BORD ER|WS_CAPTION;

hwnd = CreateWindowA("huehue", "POOP", style,
(w - 400) / 2, (h - 200) / 2, 400, 200,
NULL, NULL, wc.hInstance, NULL);

if( !hwnd )
{
MessageBoxA(NULL, "Could not create window!", "Error!", MB_OK);
goto _end;
}

ShowWindow(hwnd, SW_SHOWDEFAULT);
UpdateWindow(hwnd);

MSG msg;
ZeroMemory(&msg, sizeof(msg));

while( msg.message != WM_QUIT )
{
while( PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE) )
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

_end:
UnregisterClassA("huehue", wc.hInstance);
return 0;
}"
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us