• Log in or sign up for an account here: https://www.sythe.org/login

Do you understand this?

Does this code, excluding the GetMessage() loop, make sense to you?


  • Total voters
    83

Govind

The One Musketeer

Highly Respected
Mudkips
Retired Administrator
Joined
Apr 22, 2005
Sythe Gold
23
Messages
7,825
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
You don't need to actually understand the language. I'm asking if you can read through the code and make a reasonable guess as to what this code does.
I posted a thread a while back where I said I would consider making an SDK to make designing RS cheating/autos easier.
I'm presently designing wrappers for lengthy and unnecessarily difficult procedures like creating windows and adding controls to them without the aid of .rc files or a visual designer.

Please vote yes if this code makes sense to you, or no if it does not.

Code:
// testlib1.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "formdesign.h"
#pragma comment(lib, "formdesign.lib")
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
 	HWND hWnd = CreateForm("A Window!"/*title*/,
		"blahblah"/*classname*/,
		500/*height*/,
		400/*width*/,
		&hInstance/*you don't need to understand why this is needed*/);
	MSG Msg; 
	ShowWindow(hWnd,SW_SHOW); //make window visible
	UpdateWindow(hWnd); //paint window
	HWND textBox = AddTextBox(hWnd, //specifies that we are adding this to our existing window
		1, //1 = multiline; 0 = single line,
		1, //1 = scrollbars; 0 = noscrollbars,
		100, //height
		200); //width
	UpdateWindow(hWnd); //paint window
	while(GetMessage(&Msg,0,0,0) > 0) //mandatory for window
	{
		TranslateMessage(&Msg);
		DispatchMessage(&Msg);
	}
	CloseWindow(hWnd); //close window when we're done (closes the child window (text box) as well).
	return 0;
}
 
Are you asking if it makes sense or "do know how to use C prog. and understand this"?
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Are you asking if it makes sense or do know how to use C prog. and understand this?

I'm asking if you could read this code and get the general idea of what it would do.
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Okay, let me make this simpler.

After reading this code, can you guess what it would do?
 
You're essentially making a basic window. I think anyone with a basic understanding of how windows (window handles, messages,etc) work will understand this, whether or not they know how to program.
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Thank you, cp.
 
Will it defeat humanity?
 
St. Patrick's Day 2013
Two Factor Authentication User
Easter 2013
Heidy
Homosex
Pizza Muncher
I wouldn't have a clue what to do with that.

I have always wanted to learn how to code though, I would like someone to teach me.
 
Reading the comments give you a general idea. I thought it was a pop up window with a text entry box, but thats about it.
 
Dragon Ball
Extreme Homosex
Shitting Rainbow
"You don't need to understand how to do this"


I would assume a program that aids you in something.
 
He's not asking anyone if they can program/code. What he's asking is pretty simple, just read some of the words and get a jist of it.
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
He's not asking anyone if they can program/code. What he's asking is pretty simple, just read some of the words and get a jist of it.

Thank you; you understand :)
 
Extreme Homosex
Sythe Awards 2013 Winner
It's a window, it has a form that you can fill out, which has a scrollbar and has can write more than one line on. I think it could be something similar to an IM. I have no idea with programming though.
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
It's a window, it has a form that you can fill out, which has a scrollbar and has can write more than one line on. I think it could be something similar to an IM. I have no idea with programming though.

You got the first part right ;)
PS: Deleting all posts that were just like "yup" or "nope lol"...
 
i'm guessing a login screen or something like that
 
Like magic arrow said it's a window with a scrollbar i would add it looks like you also added a list of commands for the window to follow. If you have a window open with tabs if you close the (adult window) then the tabs (child ) will close also.

Also looks like you made a command for the window to accept messages or multiple messages.
 
Runescape Gamblingrunescape gambling
Back
Top