Thread: Check For Open Programs

  1. #16
    Registered User
    Join Date
    Dec 2006
    Location
    Scranton, Pa
    Posts
    252
    Well, my dial-up software does this (yea, I'm cheap and still use it!) and it makes complete sense. Since the port is open and in use, what good would launching another instance of the dialer do? Nada. Saves an old fool like me from receiving an annoying alert-box telling me that my modem is already in use (which I had received a few times anyways when the window was minimized and I simply forget I was already signed on).

    This may be a lousy example, but as you say, there probably isn't many valid examples out there.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    ...And if you had two modems (to add to your silly example)?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Thanks for the help everyone!

    Wow, this kind of got stuck in the middle of an argument...
    Last edited by mikeman118; 02-27-2008 at 10:13 PM.

  4. #19
    Registered User
    Join Date
    Dec 2006
    Location
    Scranton, Pa
    Posts
    252
    Quote Originally Posted by Elysia View Post
    ...And if you had two modems (to add to your silly example)?
    What's silly about the example? That my dialup software refuses to be relaunched while in use? What the hell good would it do to have two modems and only one phone line?

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You were the one who claimed it was a lousy example, so... Maybe I should've referred to it as "lousy" then.
    And who says you're limited to one phone line?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Registered User
    Join Date
    Dec 2006
    Location
    Scranton, Pa
    Posts
    252
    Holy Christ, it was just an example, Elysia. You asked for one, I gave you one, lousy in my own words, though valid none-the-less.

    Let's leave it at that. It doesn't merit further discussion -

  7. #22
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I was merely countering your belief that you should limit the program to one instance. No harsh feelings.
    Even if you can think of very good reasons to do so, other users will probably do something you never imagined and get annoyed because you limit the instances. So my advice is: don't limit your applications to a single instance.
    Users can see perfectly fine that your application is running (most of the time), so you don't really have to limit it.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #23
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    I agree, it is rather annoying when applications tell me that I can only have one instance. Who better knows the software than the programmer? Few to none, but you tell me, does the programmer know every use of their software or do you think that at times people come up with innovative ways to use software.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. how to check input is decimal or not?
    By kalamram in forum C Programming
    Replies: 3
    Last Post: 08-31-2007, 07:07 PM
  3. help with stat() and fopen()
    By movl0x1 in forum C Programming
    Replies: 6
    Last Post: 07-25-2007, 05:28 AM
  4. Check application visibility
    By 3saul in forum Linux Programming
    Replies: 2
    Last Post: 02-13-2006, 05:13 PM
  5. check my code ( if statement, file existance )
    By Shadow in forum C Programming
    Replies: 1
    Last Post: 10-04-2001, 11:13 AM