Thread: Changing the size of the window / console

  1. #1
    zach
    Guest

    Changing the size of the window / console

    Hi, I found code on the Internet to enlarge the window working area. The code needs windows.h. The code successfully changes the size of the display using DEV-C. However in Pelles C, windows.h is not accepted / errors out. I prefer Pelles C because of its attractive interface, whereas the interface of DEV-C is annoying. What is the solution, given that I prefer to work with a larger screen than both named compilers use? Thank you. Zach.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Google other search engines are things you need to learn how to use as a programmer!

    header files - In pelles c windows.h doesn't compile - Stack Overflow


    In order to use windows.h in PellesC you have to go to:

    Project -> Project Options -> Compiler
    Check: Enable Microsoft Extensions
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    zach
    Guest
    Thank you Bill. I did what you suggested. And Pelles says: Can't find include file <winows.h>. So what now? Zach.

  4. #4
    zach
    Guest
    "Google other search engines are things you need to learn how to use as a programmer!" You have a nice day too, Zach.

  5. #5
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    Quote Originally Posted by zach View Post
    So what now?
    Try to figure it out yourself?

    You obviously aren't very smart if you think stahta01's name is "Bill". I guess you think my name is "Carl".

    Have a nice day!!!
    A little inaccuracy saves tons of explanation. - H.H. Munro

  6. #6
    Registered User
    Join Date
    May 2019
    Posts
    214
    @zach, they're teasing you about the include file configuration. Find where "windows.h" exists, and make sure that's in the include path.

    Of course, that will lead you to the next problem, something similar with the linker.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-12-2015, 01:27 AM
  2. changing console window
    By JayCee++ in forum C++ Programming
    Replies: 12
    Last Post: 09-23-2011, 04:16 PM
  3. Replies: 1
    Last Post: 01-13-2011, 09:46 PM
  4. Changing Window Size
    By outerspace in forum C++ Programming
    Replies: 3
    Last Post: 11-23-2005, 01:07 PM
  5. Pre-determined window size for a console app...
    By EasterEggs in forum C++ Programming
    Replies: 4
    Last Post: 07-12-2004, 01:33 PM

Tags for this Thread