Thread: Help writing a program!

  1. #16
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Abhas View Post
    where to write the source codes in pelles c?
    it is just showing a ms-dos type window.
    Launch POIDE.EXE....
    From the start bar click PellesC for windows -> Pelles C IDE

    Click File -> new --> Project
    Select your project type and a folder to put it in
    Give your project a name
    Click OK....

    Now you're in the source code editor...
    But don't stop there...

    Click help -> contents
    Start reading.

    Pelles C is probably the best documented C development environment on the net.
    Last edited by CommonTater; 04-08-2011 at 12:40 PM.

  2. #17
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    i made a mistake , downloaded the 64-bit version instead of 32-bit version. but how can i know if my system supports 64 bit or not. i am using windows xp sp2. is it related with the intel chip i am using or the graphics driver or something else??

  3. #18
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Abhas View Post
    i made a mistake , downloaded the 64-bit version instead of 32-bit version. but how can i know if my system supports 64 bit or not. i am using windows xp sp2. is it related with the intel chip i am using or the graphics driver or something else??
    Right click the "my computer" icon and select properties... that should give you a dialog with your system details.

    You'll know because the 64 bit version will not work on your computer. It should actually come up and say "This is not a valid windows program" or similar. Frankly I'm surprised Pelles C x-64 even installed...

    While you're at it you should update your XP to Service Pack 3 (It's free)
    Last edited by CommonTater; 04-08-2011 at 07:35 PM.

  4. #19
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    thanks but the system details dont tell me anything regarding if its a 32-bit or 64- bit.

  5. #20
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Abhas View Post
    thanks but the system details dont tell me anything regarding if its a 32-bit or 64- bit.
    Yeah just tried that on my XP box... which I know is 32 bit XP... It doesn't say anything.
    Just assume it's 32 bits... and go from there. (xp-64 is a pretty rare bird)

  6. #21
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    about upgrading to sp3, i have a slow net connection. so it may take lot of time, but i will consider it seriously.

  7. #22
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Abhas View Post
    about upgrading to sp3, i have a slow net connection. so it may take lot of time, but i will consider it seriously.
    Do it! SP3 fixes a number of crucial issues... including support for high definition displays and sound as well as a whole whack of security issues. It's worth the time...

  8. #23
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    can u suggest a good site or book to learn about deque , pointers and few others? i need to learn it from the beggining.

    about pelles c 32-bit application i downloaded the complete file (at least my opera browser says so) but the downloaded file is of 2.37 mb whereas the original file is 9.6 mb. when i try to run it it shows an error message "installer too small".
    Last edited by Abhas; 04-08-2011 at 07:57 PM.

  9. #24
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Abhas View Post
    can u suggest a good site or book to learn about deque , pointers and few others? i need to learn it from the beggining.

    about pelles c 32-bit application i downloaded the complete file (at least my opera browser says so) but the downloaded file is of 2.37 mb whereas the original file is 9.6 mb. when i try to run it it shows an error message "installer too small".
    Where are you downloading it from?

    Pelles own homepage is here... smorgasbordet - Pelles C
    I just tested it from half way round the world and got the whole thing 3 times in a row.

  10. #25
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    hey did it: the new version was not working, but the older did.
    but new problem: how to write programs in pelles c??
    i wrote it:
    Code:
    #include<stdio.h>
    
    int main()
    {
    	printf("hye");
     
    }
    but it is showing error during execution:
    Building a.exe.
    POLINK: error: Unresolved external symbol '_WinMain@16'.
    POLINK: fatal error: 1 unresolved external(s).
    *** Error code: 1 ***
    Done.

  11. #26
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    See the duplicate thread you started....

  12. #27
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,664
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems installing Mingw5.1.4
    By BlackOps in forum C Programming
    Replies: 2
    Last Post: 07-26-2009, 03:28 AM
  2. Writing a program to make a calendar
    By Northstar in forum C Programming
    Replies: 17
    Last Post: 11-07-2007, 11:34 AM
  3. writing a calendar program help please!!!
    By Newbie2006 in forum C Programming
    Replies: 7
    Last Post: 11-20-2002, 07:36 PM
  4. Help with a file writing program
    By pritesh in forum C Programming
    Replies: 3
    Last Post: 11-11-2001, 01:56 AM