Volume always coming 0

This is a discussion on Volume always coming 0 within the C++ Programming forums, part of the General Programming Boards category; Very well,I have a different query now. I scrapped the loading screen, if it is so "pretentious". My question is ...

  1. #16
    Cryptanalyst
    Join Date
    Sep 2007
    Posts
    52
    Very well,I have a different query now. I scrapped the loading screen, if it is so "pretentious". My question is if I were to automatically maximize the DOS window on loading the program,how would I do so?

    Crap,I meant the DOS window, not Win32 Console window..
    Last edited by SVXX; 10-04-2007 at 07:14 AM.

  2. #17
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    You'd have to find your console window and send it a maximize command. This involves the WinAPI and is pretty tricky. Console windows are hard to find.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Press ALT-Enter... Edit: Or perhaps that's not actually what you want to do...

    --
    Mats
    Last edited by matsp; 10-04-2007 at 07:21 AM.
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #19
    Cryptanalyst
    Join Date
    Sep 2007
    Posts
    52
    Quote Originally Posted by matsp View Post
    Press ALT-Enter... Edit: Or perhaps that's not actually what you want to do...

    --
    Mats
    Lol I need the code to do that, because half the noobs I call friends don't know Alt+Enter maximizes the DOS screen.

  5. #20
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    Startup splash screens are there as "eye candy" to disguise the fact that the software is bloated and is taking longer to load than most normal people would assume to be necessary.

    Like if nothing is visible in about 2 seconds, people start to wonder if it's going to work at all.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #21
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by SVXX View Post
    Lol I need the code to do that, because half the noobs I call friends don't know Alt+Enter maximizes the DOS screen.
    Well, if it was easy to do, I'm sure we would have done that when I worked on Windows graphics drivers, because we did quite often need to go to full-screen "dos-box" and back to windows mode again.

    Technically, it doesn't maximize the window, it goes to text-mode in the graphics card. Maximizing the window will make it as tall as the screen and as wide as it needs to be to display the number of columns you've selected (80 for example).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #22
    Cryptanalyst
    Join Date
    Sep 2007
    Posts
    52
    I see...so I guess thats a redundant idea as well. Why don't I just add a Notes section and write that,lol

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 06-09-2009, 12:55 AM
  2. How to know if a volume is mounted with ACL enabled
    By rak1986 in forum Linux Programming
    Replies: 0
    Last Post: 04-08-2009, 12:45 AM
  3. Volume of a Cone Equation always equals 0
    By Devolution in forum C Programming
    Replies: 11
    Last Post: 01-28-2009, 02:13 AM
  4. Help! Right Math, Wrong Output
    By verd in forum C Programming
    Replies: 12
    Last Post: 03-15-2005, 06:49 PM
  5. What am I doing wrong? Help please...
    By SprinterSteve in forum C Programming
    Replies: 9
    Last Post: 04-17-2003, 09:35 PM

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