Adblock breaks this site

Do you understand this?

Discussion in 'Community General' started by Govind, Oct 23, 2010.

?

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

  1. Yes, but I already knew C programming.

    14.5%
  2. Yes.

    30.1%
  3. No.

    55.4%
  1. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Do you understand this?

    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;
    }
     
  2. Vaporized

    Vaporized Forum Addict
    $5 USD Donor New

    Joined:
    Aug 12, 2010
    Posts:
    550
    Referrals:
    0
    Sythe Gold:
    0
    Do you understand this?

    Are you asking if it makes sense or "do know how to use C prog. and understand this"?
     
  3. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Do you understand this?

    I'm asking if you could read this code and get the general idea of what it would do.
     
  4. Sanctuary

    Sanctuary Community Cuddle Puddle

    Joined:
    Feb 1, 2007
    Posts:
    4,990
    Referrals:
    1
    Sythe Gold:
    13
    Do you understand this?

    Well, probably if I knew how to code. =D
     
  5. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Do you understand this?

    Okay, let me make this simpler.

    After reading this code, can you guess what it would do?
     
  6. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Do you understand this?

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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Do you understand this?

    Thank you, cp.
     
  8. Legit.fm

    Legit.fm Active Member
    Banned

    Joined:
    Sep 30, 2010
    Posts:
    190
    Referrals:
    0
    Sythe Gold:
    0
    Do you understand this?

    Will it defeat humanity?
     
  9. Alteranz

    Alteranz Hero
    Zombie Angelic Retired Global Moderator

    Joined:
    Nov 11, 2008
    Posts:
    5,076
    Referrals:
    2
    Sythe Gold:
    0
    Do you understand this?

    Wouldn't have a idea in the world.
     
  10. Shoop

    Shoop Legend
    $100 USD Donor New Angelic Retired Sectional Moderator

    Joined:
    Feb 14, 2010
    Posts:
    4,418
    Referrals:
    0
    Sythe Gold:
    2
    Vouch Thread:
    Click Here
    Discord Unique ID:
    625378835759628290
    Two Factor Authentication User St. Patrick's Day 2013 Pizza Muncher Easter 2013 Homosex Heidy
    Do you understand this?

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

    Billetes Guru
    Banned

    Joined:
    Jun 20, 2009
    Posts:
    1,776
    Referrals:
    0
    Sythe Gold:
    0
    Do you understand this?

    No idea... But it's probably what cp said.
     
  12. Sarad0m1nz

    Sarad0m1nz Guru

    Joined:
    Aug 29, 2007
    Posts:
    1,575
    Referrals:
    0
    Sythe Gold:
    0
    Do you understand this?

    Leechers orgasm to the fact that they can type 4 letters and it would be counted as a post.



    So that wasn't considered spam:
    Nope, I don't understand a word of it.
     
  13. Skillers FTW

    Skillers FTW Guest

    Referrals:
    0
    Do you understand this?

    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.
     
  14. Bubba Fuzz

    Bubba Fuzz Shit happens, Life goes on. Just. Keep. Going.
    bubba fuzz Donor

    Joined:
    Jun 7, 2010
    Posts:
    3,435
    Referrals:
    2
    Sythe Gold:
    0
    Dragon Ball Shitting Rainbow Extreme Homosex
    Do you understand this?

    "You don't need to understand how to do this"


    I would assume a program that aids you in something.
     
  15. Ireland

    Ireland Forum Addict

    Joined:
    Jun 17, 2010
    Posts:
    425
    Referrals:
    0
    Sythe Gold:
    4
    Do you understand this?

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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Do you understand this?

    Thank you; you understand :)
     
  17. Magic Arrow

    Magic Arrow Protector of the homosex, defender of the AIDS
    $5 USD Donor Mudkips Retired Sectional Moderator

    Joined:
    Feb 3, 2007
    Posts:
    4,129
    Referrals:
    673
    Sythe Gold:
    49
    Extreme Homosex Sythe Awards 2013 Winner
    Do you understand this?

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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Do you understand this?

    You got the first part right ;)
    PS: Deleting all posts that were just like "yup" or "nope lol"...
     
  19. goku usa

    goku usa Guru
    Banned

    Joined:
    Jul 6, 2010
    Posts:
    1,280
    Referrals:
    0
    Sythe Gold:
    0
    Do you understand this?

    i'm guessing a login screen or something like that
     
  20. Maleficent

    Maleficent Forum Addict
    $5 USD Donor

    Joined:
    Aug 2, 2009
    Posts:
    612
    Referrals:
    0
    Sythe Gold:
    0
    Do you understand this?

    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.
     
< User Educator Interview: cosrob97 | Tribute to Pen >


 
 
Adblock breaks this site