Alarm when the food is on the table!

This is a discussion on Alarm when the food is on the table! within the Windows Programming forums, part of the Platform Specific Boards category; OK, admit it! I'm one of those spoiled brats who still get the food served by mum! That's indead lovely, ...

  1. #1
    Registered User FearOfTheDark's Avatar
    Join Date
    Jan 2003
    Posts
    31

    Lightbulb Alarm when the food is on the table!

    OK, admit it! I'm one of those spoiled brats who still get the food served by mum!
    That's indead lovely, but there's always the same problem, I'm sitting in front of my computer listening to loud music, and I can't hear when they shout at me from downstairs when the dinner is on the table.
    And today I also got my old P120, working again, some evil virus made it confused, but today i reinstalled windows etc, so now it's working propely again.

    Now I got this crazy idea that I should write a program, wish basicly tells me when food is availible!
    How could that be done? I would like to move the P120 downstairs, connect it to our homenetwork, and then write a program wish can send a message to my computer...

    I haven't learn DirectPlay or something like that yet, so I just want to know if there's some easy way to do this?

    Otherwise I will have to continue to eat cold food! :-)
    -We're living in a illusion!
    -Ok, if that's what you think!

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Option #1:
    Depending on what version of windows you guys have you can always use "net send". You could setup a shortcut for them to click and it display a messagebox on your computer with a short msg saying food is ready.

    Option #2:
    You can learn how to use sockets and write a simple application that sends you a packet whenever food is ready. You would need client/server type setup I suppose.

    Option #3:
    You can start making your own meals.

  3. #3
    Registered User FearOfTheDark's Avatar
    Join Date
    Jan 2003
    Posts
    31

    MSVC++

    To do this in MSVC++ was what I had in mind...

    what will be the quickest way to solve this problem?

    Buy a cookbook or MSVC++book?
    Hm...
    -We're living in a illusion!
    -Ok, if that's what you think!

  4. #4
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73
    Code:
    system("net send computer1 Dinner Time!");

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    >> system("net send computer1 Dinner Time!");

    That is assuming you are on an NT Kernel based Operating System, and i dont think a p120 can have NT, 2K or XP on it.

    I suggest you search on google for "Beej's Guide To Network Programming" it is a great tutorial on sockets.
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  6. #6
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    Hey FearOfTheDark, I just wrote a couple of quicky programs to do what you need. Hope it helps. Email me if you would like the source and such. Binaries are included. One is server which runs on your computer and one is client which is run from the message-sending computer.
    Attached Files Attached Files
    Last edited by LuckY; 02-06-2003 at 11:50 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing array, to file
    By zootreeves in forum C Programming
    Replies: 9
    Last Post: 09-08-2007, 06:06 PM
  2. progarm doesnt compile
    By kashifk in forum Linux Programming
    Replies: 2
    Last Post: 10-25-2003, 06:54 PM
  3. extra word printing
    By kashifk in forum C++ Programming
    Replies: 2
    Last Post: 10-25-2003, 05:03 PM
  4. inputting words from a file
    By kashifk in forum C++ Programming
    Replies: 5
    Last Post: 10-24-2003, 08:18 AM
  5. help with operator <
    By kashifk in forum C++ Programming
    Replies: 1
    Last Post: 10-21-2003, 04:49 PM

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