C Board  

Go Back   C Board > General Programming Boards > C# Programming

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-01-2008, 01:42 AM   #1
Registered User
 
Join Date: May 2006
Posts: 1,579
console mode and service mode

Hello everyone,


My application can be started as both console mode from main function and servide mode from OnStart.

My question is, is there any elegant way to detect whether the application is run under console mode or servide mode? Currently, I set a status in main function manually to detect whether it is run under console mode or service mode.

Any more elegent solution or built-in API I could use?


thanks in advance,
George
George2 is offline  
Closed Thread

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with default font in graphical mode voldemarz C Programming 16 10-24-2008 01:30 PM
Common lang runtime debugging service giving me problems datainjector C# Programming 3 08-04-2003 06:03 AM
problem with MSVC++ 6's release mode dirkduck C++ Programming 13 03-23-2002 03:05 PM


All times are GMT -6. The time now is 03:28 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22