U can use TSR ( Terminate & Resident in Memory ) Programs i.e. programs that can be placed in the memory for permanent.
Refer "Writing TSRs in C" book of BPB Publications ( written mostly by Yashwant Kanetkar though i m not sure ).
However, note that these TSRs work only in DOS Mode & not in Windows Mode since it frees all resources used by the DOS Programs wen switching back to Windows Mode. So practically, ur C Program cannot be minimzed to an Icon in the Taskbar, it vil just get destroyed wen u close the DOS Prompt Window.
Reply if u need more help with TSRs.
Main Topics
Browse All Topics





by: lwinkenbPosted on 2005-09-23 at 18:16:00ID: 14949447
Their program isn't still in memory after the user destroys it, that's just not possible. What is happening is that when the user presses the close button, the application simply hides the main window, and adds an icon to the system tray.
To add a system tray icon, you need to fill a NOTIFYICONDATA structure, and then call Shell_NotifyIcon() passing NIM_ADD as the first parameter.