Thread: The Best thread EVER!

  1. #46
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    People Dont go off topic,
    try putting something that can make a program good, look better and professional looking.


  2. #47
    Registered User Xei's Avatar
    Join Date
    May 2002
    Posts
    719

    Off topic? j/k

    My dog had kidney stones, then it tried to open up its tummy. Silly dog.

  3. #48
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    lol
    anyway, i have got how to shutdn here is the code

    BOOL ExitWindowsEx(
    UINT uFlags, // shutdown operation
    DWORD dwReason // shutdown reason

    this will shutdn windows and only works on WIN platform

    tho i havent been able to successfully shutdn, but it works i know.

    ok can some1 give the code to Exit program.
    like in mac u use ExitToShell();
    how about in windows?

  4. #49
    Registered User Xei's Avatar
    Join Date
    May 2002
    Posts
    719

    Oh!

    In windows I believe its: ExitProcess to exit the process then you can use GetExitCodeProcess to get the code and you can use GetCurrentProcess to get the process of your application. So something like this:

    ExitProcess(GetExitCodeProcess(GetCurrentProcess() ,0));

    I think that will work, I havnt tried it. But those are the API that you want to use. Or you could try ExitThreat with GetExitCodeThread with GetCurrentThread. Give it a shot, then tell me if its a success. I'd test it but Im really busy, I'll test it later tonight if I've got the time. I've gotta help my friend study for math. Good Luck.

  5. #50
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    try putting something that can make a program good, look better and professional looking.
    Hmm, proper grammar would make a program look very professional, although, I'm sure this is way out of the scope of this threads purpose. Solid coding can also make an application seem more professional.

    Unless you're writing drivers, or some other sort of program which alters system files, you have no reason to restart the computer.

    A spiffy company name to back the application would also help, something along the lines of Shafted. This thread should be closed as well, it's no different than your first hacking thread.

  6. #51
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294

    Thumbs up

    if that doesnt work try this
    ExitWindows(1,1);
    or
    ExitWindows(0, 0);


  7. #52
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    fish i meant the output

    like
    system("cls");
    makes ur output better!

  8. #53
    Unregistered
    Guest

    Exclamation Best thred ever (hahahahaha.....)

    Best thread ever ya right....

    If this is the best thread ever then:
    Bill Gates is not the richest person in the world....

    And Bil Gates IS the richest person on the world..

  9. #54
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > And Bil Gates IS the richest person on the world..
    No he's not.

    I encourage users to do a search on dayknight's posting history and see his professional composure while posting. How can you ask for something professional in return when you yourself do not act this way 99% of the time?
    Last edited by Shadow; 05-08-2002 at 02:47 AM.
    The world is waiting. I must leave you now.

  10. #55
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    No he's not.
    He is according to Forbes.
    Visit entropysink.com - It's what your PC is made for!

  11. #56
    Prisoner of my own mind
    Join Date
    Aug 2001
    Posts
    203
    He's 2nd according to the sunday times rich list, the bloke who owns walmart is apparantly richer.
    Lead me not into temptation... I can find it myself.

  12. #57
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    Not wishing to get into a long debate but.......


    On the Times site, if you check out the * it denotes family wealth. Billy boys is personal .
    Visit entropysink.com - It's what your PC is made for!

  13. #58
    Prisoner of my own mind
    Join Date
    Aug 2001
    Posts
    203
    Not wanting to carry this on, especially since this not really the board for it.

    Yeah, but I was going by memory of the newspaper supplement I skimmed through about 2 months ago. As I recall it was about twice as much as Bill's and since he's named, how much of it does the Walmart owner personally manage\own?? We'll probably never know.
    Lead me not into temptation... I can find it myself.

  14. #59
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    I guess when you're worth 37 Billion, your not too ........ed about someone else being worth a little more!!

    I know one thing for sure. They're both worth more than me!!!
    Visit entropysink.com - It's what your PC is made for!

  15. #60
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Bill gates may be one of the richest men in the world - legally
    The world is waiting. I must leave you now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thread Synchronization in Win32
    By passionate_guy in forum C Programming
    Replies: 0
    Last Post: 02-06-2006, 05:34 AM
  2. [code] Win32 Thread Object
    By Codeplug in forum Windows Programming
    Replies: 0
    Last Post: 06-03-2005, 03:55 PM
  3. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  4. Simple thread object model (my first post)
    By Codeplug in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2004, 11:34 PM
  5. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM