Like Tree6Likes
  • 3 Post By oogabooga
  • 3 Post By MutantJohn

My own C program which draws picture on paint

This is a discussion on My own C program which draws picture on paint within the Tech Board forums, part of the Community Boards category; You can watch how it works from this youtube link https://www.youtube.com/watch?v=u5UkaGJmyNc...

  1. #1
    Registered User cavuscan07's Avatar
    Join Date
    Nov 2013
    Location
    Istanbul, Turkey
    Posts
    6

    Cool My own C program which draws picture on paint

    You can watch how it works from this youtube link
    https://www.youtube.com/watch?v=u5UkaGJmyNc

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Looks good! Nice video, and music.

    I couldn't read the code, however.

  3. #3
    Registered User
    Join Date
    Mar 2012
    Location
    the c - side
    Posts
    212
    Looks good. Out of curiosity can ask what api you used - gtk+? And what kind of time such a project takes to complete?

  4. #4
    Registered User cavuscan07's Avatar
    Join Date
    Nov 2013
    Location
    Istanbul, Turkey
    Posts
    6
    All of my codes based on loops and commands in windows.h library. I created some algorithms and those gave some commands to mouse and keyboard. I had done it for two weeks. I am beginner so whole learning and writing process took that long time.

  5. #5
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Post the code here so we can play with it.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  6. #6
    Registered User Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    650
    You're a beginner and you did that in two weeks? Impressive stuff.

  7. #7
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    3,831
    I couldn't read the code, however.
    O_o

    Click on the gear, "settings", so you can change the stream to "720p".

    You should be able to read the code fine.

    Soma
    “Often out of periods of losing come the greatest strivings toward a new winning streak.” -- Fred Rogers
    “Salem Was Wrong!” -- Pedant Necromancer

  8. #8
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,602
    Nooooo, lots of gotos!...
    Nice program, by the way.
    Devoted my life to programming...

  9. #9
    Registered User cavuscan07's Avatar
    Join Date
    Nov 2013
    Location
    Istanbul, Turkey
    Posts
    6
    As phantomotap said it's possible to copy with reading from video. It was actually for cnc pbc program. But it was boring and my friend didn't do any physical part of cnc so i changed some codes then it came out good stuff like that. This is my first year studying at Computer Science but because of like it, i'm trying to do programs and learning lots of things.
    It is special for me so i don't want to share source code. I'm also new here but sometimes i will share some programs and source codes. For example this is new one
    Matrix Raining Code

  10. #10
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    I've looked through the code and it's not THAT "special" !
    For instance it has some VERY bad structure.
    Overall, it's a very simple program, using keybd_event, mouse_event, and SetCursorPos to manipulate mspaint.
    There's also some invalid assumptions and even a couple of bugs.
    But clearly you're not interested in learning anything like that, so I suggest that you don't bother posting here since this is a place for people to learn, not to show off.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  11. #11
    Registered User cavuscan07's Avatar
    Join Date
    Nov 2013
    Location
    Istanbul, Turkey
    Posts
    6
    Quote Originally Posted by oogabooga View Post
    I've looked through the code and it's not THAT "special" !
    For instance it has some VERY bad structure.
    Overall, it's a very simple program, using keybd_event, mouse_event, and SetCursorPos to manipulate mspaint.
    There's also some invalid assumptions and even a couple of bugs.
    But clearly you're not interested in learning anything like that, so I suggest that you don't bother posting here since this is a place for people to learn, not to show off.
    I started to learning C programming two months ago because I have been studying at Computer Science for two months. I know it's not that special for others but for now i just want to hear oh you're awesome or something like that In spite of that program has bad structure or some bugs, i learned lots of things while i was searching about how can i write it. After that hard part i don't want to hear "there is wrong" or "look at there you can do it instead of that". But thanks for your comment i will try to do better things after that

  12. #12
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    3,831
    After that hard part i don't want to hear "there is wrong" or "look at there you can do it instead of that".
    O_o

    You are not only in the wrong place, but the wrong profession.

    To be clear, writing perfect programs is impossible so, as a professional, you will always be told about problems with your code.

    Soma
    “Often out of periods of losing come the greatest strivings toward a new winning streak.” -- Fred Rogers
    “Salem Was Wrong!” -- Pedant Necromancer

  13. #13
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    805
    I don't know what phantom is talking about, my code is perfect.
    Hodor, laserlight and Yarin like this.

  14. #14
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,602
    I'm getting jealous now!... I wanna make a video about my operating system!
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple MFC paint program
    By c.zdravko in forum Windows Programming
    Replies: 1
    Last Post: 01-21-2008, 06:01 AM
  2. My Paint Program - try it and rate it!
    By actionbasti in forum Windows Programming
    Replies: 5
    Last Post: 04-25-2004, 12:51 AM
  3. paint program
    By <><><><> in forum C Programming
    Replies: 6
    Last Post: 04-14-2003, 01:21 PM
  4. Do you have a paint-style program?
    By swordfish in forum Windows Programming
    Replies: 1
    Last Post: 09-13-2001, 12:58 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21