| | |
Running C++ program in the background
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
What operating system?
[edit]
For rep happy the morons who can't tell the difference, I'm asking if the OP is using Windows or DOS. The answer to the question changes drastically between those two systems, and Borland has written C++ compilers for them both.

[/edit]
[edit]
For rep happy the morons who can't tell the difference, I'm asking if the OP is using Windows or DOS. The answer to the question changes drastically between those two systems, and Borland has written C++ compilers for them both.

[/edit]
Last edited by Narue; Oct 17th, 2007 at 5:19 pm.
New members chased away this month: 4
•
•
•
•
I want it to be a DOS based program. I have borland C++ the windows based.
On what OS do you intend to run the target executable?
Last edited by Dave Sinkula; Oct 21st, 2007 at 1:18 am.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
You would have to write a TSR (terminate-and-stay-resident), and I'm not sure that cmd.exe supports that like it did with MS-DOS Version 6.X and earlier.
I thought you might use one of the win32 hooks, but probably not from what I read.
Possibly a device driver or a windows service program
I thought you might use one of the win32 hooks, but probably not from what I read.
Possibly a device driver or a windows service program
Last edited by Ancient Dragon; Oct 21st, 2007 at 7:23 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
You have to write it as a window service.
•
•
Join Date: Oct 2007
Posts: 87
Reputation:
Solved Threads: 4
im pretty sure that it isnt exactly the right way to do it, or the best way, but i know an easy way to run a c++ program in the background.
Make it a win32 application instead of console but do not draw a window.
I know it works, ive done it before.
again, i know its not a good way to do it, but it will work.
Make it a win32 application instead of console but do not draw a window.
I know it works, ive done it before.
again, i know its not a good way to do it, but it will work.
![]() |
Similar Threads
- How to get total time of running program (Java)
- Windows XP Keep Freezing (Windows NT / 2000 / XP)
- C expert help me! Write a TSR program that changes the background color ... (C)
- running VB6 in background accepting keystokes and then controlling the mouse pointer (Visual Basic 4 / 5 / 6)
- comp running really slow (Viruses, Spyware and other Nasties)
- Passing command line variable into already running c++ program (C++)
- Running a program from within a py script... (Python)
- Java Swing Calculator program not running. It has 0 errors (Java)
- Running a program before loading Windows Explorer during booting (Visual Basic 4 / 5 / 6)
- Running a program (C++)
Other Threads in the C++ Forum
- Previous Thread: copy constructors question
- Next Thread: Console GDI
Views: 5717 | Replies: 10
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






