Thread: Letting a program run as a task ( background )

  1. #1
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110

    Letting a program run as a task ( background )

    Hello,

    Like the topic says, I saw it a while ago on MSDN but forgot to bookmark it . Anyway what I saw on MSDN was how to make sure that you would not be able to alt-tab between your program and other programs running, thus letting it be just like any other process that really runs in the background.

    It was some kind of interrupt or something, anyway I dont seem to find it again on MSDN.
    So if anyone knows how to this, IŽd appreciate it if you would share it with me .

    thanks in advance,

    Ganglylamb.

  2. #2
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    I'm pretty sure you can create a Windows Service project in Visual C# - 2003 and 2005.
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    2
    hi,

    i'm a student and i've a homework to write a simple code concerning how to create and delete a process.
    also, another code on how to create a thread and delete it????

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    2
    how???in C++

  5. #5
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    After four months, you can be assured that a thread is dead. Further, you should ask questions about C++ in the C++ forum, not the C# forum. However, be sure to ask a good question. Your original post is a simple plea for spoonfeeding. Instead, you should post code, showing us your attempt, and ask a specific question.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  6. #6
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Amen.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can't get this program to run correctly
    By Amyaayaa in forum C++ Programming
    Replies: 3
    Last Post: 02-05-2008, 04:16 PM
  2. Help me with my basic program, nothing I create will run
    By Ravens'sWrath in forum C Programming
    Replies: 31
    Last Post: 05-13-2007, 02:35 AM
  3. Replies: 2
    Last Post: 12-22-2006, 08:45 PM
  4. Running program on background?
    By Couhilin in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2001, 07:50 AM