hi there,
what code should we write so that no window is displayed on the screen. and the execution of the program takes place in the background.
thank u.
hi there,
what code should we write so that no window is displayed on the screen. and the execution of the program takes place in the background.
thank u.
Depends on your app. Are you using MFC?
After you have created your window, there is no need to show it at all, either don't call ShowWindow() or call it with the SW_HIDE property.
Be careful, if you have no WIndow, then you do not have any ordinary way to stop your program. Normally, if I have a background task running, I put an icon in the system tray, which will popup a menu that will at lest let me stop it.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
i am using c .
so it would be helpful if the code is in c / c++.
thank u.
If you are using API or manually using MFC it is a lot easier to do since you control the creation of the window/dialog (see adrianxw's post).
If you are using appwizard MFC it is not as simple, but it is possible with a few steps.
Again, it depends on your app. I wasn't talking about the language (of course you're using c/c++ silly : )). If I'm still not being clear, just tell me how you're creating the app. Are you using WinMain()? Are you creating an AppWizard MFC app in MSVC? More details, por favor.
It doesn't really matter what language you are using if you are not going to call a function. An example of not calling a function in C would look eactly the same as an example of not calling a function in C++...
...I think you really need to expand a little on what you have got so far.Code:
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
This can depend on wether your using a main or WinMain function as the entry point of the application, not just code within the WinMain function. You can build console level applications that do not display a DOS box by just passing a windows flag to the compiler.Originally posted by raj
hi there,
what code should we write so that no window is displayed on the screen. and the execution of the program takes place in the background.
thank u.
hi there,
i am very interested about this tip....
can you tell me please how i can write a console application without showing the dos window please?
i am using MS visual C ++ v6
Last edited by Aenaos; 04-15-2003 at 12:47 PM.
! ! ! ! PLEASE ! ! ! !
i had to shut down....
but i will check ....
also i have my mail, if someone want to mail me ONLY about this thread
thanx in advance,
Last edited by Aenaos; 04-15-2003 at 12:46 PM.