Thread: My own C program which draws picture on paint

  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
    373
    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
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    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
    5,108
    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
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  8. #8
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    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
    5,108
    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
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  13. #13
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    I don't know what phantom is talking about, my code is perfect.

  14. #14
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    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, 07: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