Thread: Basics in Pelles C

  1. #16
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by AndrewHunter View Post
    Ok, dude......
    Awww Gees... I just KNEW you were going to do that...

  2. #17
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Well well! Look at you, using a modern compiler! Well done!


    When and if you need the Pelles C de=bugger, click on:

    1) Project >> project options >> compiler tab >> debug information >> full

    2) Linker tab >> debug information >> Codeview and COFF format,

    3) Rebuild your project and re-compile

    Then you can run the debugger, with the little blue icons, while at the same time, seeing your code. (Otherwise, you see just the pop up page of assembly instructions).

    For me (and I'm sure for you), this is not nearly as fast as using the quick debugger in Turbo C -- but I have become better at finding errors in my code, because of it.

  3. #18
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by CommonTater View Post
    Awww Gees... I just KNEW you were going to do that...
    Haha...I couldn't resist.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  4. #19
    Registered User
    Join Date
    Jun 2011
    Posts
    35
    I dont mean to get off topic but, does Pelles have its own special functions that are not in standard C? or does it follow standard C and simply provide a useful programing environment? I know that Borland had a version of C where some functions were specific to just Borland, so I didnt use it. Not that I would use Pelles, its windows only.

  5. #20
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Linux Trojan View Post
    I dont mean to get off topic but, does Pelles have its own special functions that are not in standard C? or does it follow standard C and simply provide a useful programing environment? I know that Borland had a version of C where some functions were specific to just Borland, so I didnt use it.

    Yes it has a list of private #include files as well...
    It also includes a very nice implementation of Windows SEH that most C compilers don't have.
    Also if you visit the forums you will find all kinds of addins and libraries as well. (You might recognize one of the authors...)

    Thing is the help file clearly identifies standard and non-standard functions as well as providing full documentation of every call... It's probably the best help file I've ever seen...

    Basics in Pelles C-pellesprivate-png

    You could, with some patience, actually learn to write C code from Pelles help file.

    Not that I would use Pelles, its windows only.
    That's your problem...
    Last edited by CommonTater; 08-02-2011 at 12:17 PM. Reason: #$&%^* typos...

  6. #21
    Banned
    Join Date
    Aug 2011
    Location
    Ghaziabad, India, India
    Posts
    48
    How I can make graphical programs in Pelles C

  7. #22
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    You are not yet profficient enough in programming C to think about graphical programs. Those are advanced topics and you need a good understanding of the language before going there.

  8. #23
    Banned
    Join Date
    Aug 2011
    Location
    Ghaziabad, India, India
    Posts
    48
    Quote Originally Posted by Shakti View Post
    You are not yet profficient enough in programming C to think about graphical programs. Those are advanced topics and you need a good understanding of the language before going there.
    I am a very good programmer in graphics in c but with TC compiler I don't know how graphics works in Pelles c . If You Know please tell me???

  9. #24
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    For yet another time, look in the help file!!!!! Look under the conio header file.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  10. #25
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by Shakti View Post
    You are not yet profficient enough in programming C to think about graphical programs. Those are advanced topics and you need a good understanding of the language before going there.
    He is referring to his excellent skill with console graphics, not what we all normally think of when referring to GUIs or even typical window game graphics.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  11. #26
    Banned
    Join Date
    Aug 2011
    Location
    Ghaziabad, India, India
    Posts
    48
    But there is no any circle() or line() function showing which I have requirement.

  12. #27
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    I am not a Pelles C user, did you look for a graphics header file like the one you used in Turbo C?

    EDIT: Never mind. Pelles doesn't have one. You are going to have to learn to use the Windows API. Here is the link that answers that.
    Last edited by AndrewHunter; 08-02-2011 at 01:09 PM.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  13. #28
    Banned
    Join Date
    Aug 2011
    Location
    Ghaziabad, India, India
    Posts
    48
    Quote Originally Posted by AndrewHunter View Post
    I am not a Pelles C user, did you look for a graphics header file like the one you used in Turbo C?

    EDIT: Never mind. Pelles doesn't have one. You are going to have to learn to use the Windows API. Here is the link that answers that.
    Yes there is no any "graphics.h" file there in Pelles C compiler

  14. #29
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Vxyz View Post
    But there is no any circle() or line() function showing which I have requirement.
    That's right... Pelles C does not include the turbographics (BGI) library which was Borland specific and never part of any C standard.

    Remember... you are now programming in a standards based environment, not some crappy one off created long before any standards --before Windows-- even existed. Nobody does console graphics anymore... Windows GUI environments made it totally unnecessary.

  15. #30
    Banned
    Join Date
    Aug 2011
    Location
    Ghaziabad, India, India
    Posts
    48
    Quote Originally Posted by CommonTater View Post
    That's right... Pelles C does not include the turbographics (BGI) library which was Borland specific and never part of any C standard.

    Remember... you are now programming in a standards based environment, not some crappy one off created long before any standards --before Windows-- even existed. Nobody does console graphics anymore... Windows GUI environments made it totally unnecessary.
    So What should I do Now ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling C++ on Pelles C....
    By CommonTater in forum C++ Programming
    Replies: 2
    Last Post: 05-27-2011, 07:56 PM
  2. how to write programs in pelles c??
    By Abhas in forum C Programming
    Replies: 13
    Last Post: 04-11-2011, 12:32 AM
  3. Pelles C Temperature
    By uneasybbj in forum C Programming
    Replies: 4
    Last Post: 11-23-2010, 01:51 PM
  4. help debugging in Pelles C IDE
    By gaurav9991 in forum C Programming
    Replies: 3
    Last Post: 10-30-2010, 07:15 AM
  5. Opinion on C99 ver. of Pelles C IDE?
    By Adak in forum C Programming
    Replies: 0
    Last Post: 03-13-2009, 07:27 PM