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%
Do you understand this?
  1. Unread #1 - Oct 23, 2010 at 11:50 AM
  2. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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;
    }
     
  3. Unread #2 - Oct 23, 2010 at 12:01 PM
  4. Vaporized
    Joined:
    Aug 12, 2010
    Posts:
    550
    Referrals:
    0
    Sythe Gold:
    0

    Vaporized Forum Addict
    $5 USD Donor New

    Do you understand this?

    Are you asking if it makes sense or "do know how to use C prog. and understand this"?
     
  5. Unread #3 - Oct 23, 2010 at 12:02 PM
  6. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Do you understand this?

    I'm asking if you could read this code and get the general idea of what it would do.
     
  7. Unread #4 - Oct 23, 2010 at 12:05 PM
  8. Sanctuary
    Joined:
    Feb 1, 2007
    Posts:
    4,990
    Referrals:
    1
    Sythe Gold:
    13

    Sanctuary Community Cuddle Puddle

    Do you understand this?

    Well, probably if I knew how to code. =D
     
  9. Unread #5 - Oct 23, 2010 at 12:16 PM
  10. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Do you understand this?

    Okay, let me make this simpler.

    After reading this code, can you guess what it would do?
     
  11. Unread #6 - Oct 23, 2010 at 12:33 PM
  12. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    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.
     
  13. Unread #7 - Oct 23, 2010 at 12:37 PM
  14. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Do you understand this?

    Thank you, cp.
     
  15. Unread #8 - Oct 23, 2010 at 1:23 PM
  16. Legit.fm
    Joined:
    Sep 30, 2010
    Posts:
    190
    Referrals:
    0
    Sythe Gold:
    0

    Legit.fm Active Member
    Banned

    Do you understand this?

    Will it defeat humanity?
     
  17. Unread #9 - Oct 23, 2010 at 1:35 PM
  18. Alteranz
    Joined:
    Nov 11, 2008
    Posts:
    5,076
    Referrals:
    2
    Sythe Gold:
    0

    Alteranz Hero
    Zombie Angelic Retired Global Moderator

    Do you understand this?

    Wouldn't have a idea in the world.
     
  19. Unread #10 - Oct 23, 2010 at 2:51 PM
  20. Shoop
    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

    Shoop Legend
    $100 USD Donor New Angelic Retired Sectional Moderator

    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.
     
  21. Unread #11 - Oct 26, 2010 at 3:36 AM
  22. Billetes
    Joined:
    Jun 20, 2009
    Posts:
    1,776
    Referrals:
    0
    Sythe Gold:
    0

    Billetes Guru
    Banned

    Do you understand this?

    No idea... But it's probably what cp said.
     
  23. Unread #12 - Oct 29, 2010 at 1:17 AM
  24. Sarad0m1nz
    Joined:
    Aug 29, 2007
    Posts:
    1,575
    Referrals:
    0
    Sythe Gold:
    0

    Sarad0m1nz Guru

    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.
     
  25. Unread #13 - Nov 3, 2010 at 12:52 PM
  26. Skillers FTW
    Referrals:
    0

    Skillers FTW Guest

    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.
     
  27. Unread #14 - Nov 3, 2010 at 12:55 PM
  28. Bubba Fuzz
    Joined:
    Jun 7, 2010
    Posts:
    3,435
    Referrals:
    2
    Sythe Gold:
    0
    Dragon Ball Shitting Rainbow Extreme Homosex

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

    Do you understand this?

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


    I would assume a program that aids you in something.
     
  29. Unread #15 - Nov 3, 2010 at 1:08 PM
  30. Ireland
    Joined:
    Jun 17, 2010
    Posts:
    425
    Referrals:
    0
    Sythe Gold:
    4

    Ireland Forum Addict

    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.
     
  31. Unread #16 - Nov 3, 2010 at 1:33 PM
  32. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Do you understand this?

    Thank you; you understand :)
     
  33. Unread #17 - Nov 3, 2010 at 1:50 PM
  34. Magic Arrow
    Joined:
    Feb 3, 2007
    Posts:
    4,129
    Referrals:
    673
    Sythe Gold:
    49
    Extreme Homosex Sythe Awards 2013 Winner

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

    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.
     
  35. Unread #18 - Nov 3, 2010 at 1:51 PM
  36. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Do you understand this?

    You got the first part right ;)
    PS: Deleting all posts that were just like "yup" or "nope lol"...
     
  37. Unread #19 - Nov 3, 2010 at 1:58 PM
  38. goku usa
    Joined:
    Jul 6, 2010
    Posts:
    1,280
    Referrals:
    0
    Sythe Gold:
    0

    goku usa Guru
    Banned

    Do you understand this?

    i'm guessing a login screen or something like that
     
  39. Unread #20 - Nov 3, 2010 at 2:06 PM
  40. Maleficent
    Joined:
    Aug 2, 2009
    Posts:
    612
    Referrals:
    0
    Sythe Gold:
    0

    Maleficent Forum Addict
    $5 USD Donor

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site