Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerRe: krish Pin
Calin Tatar3-Mar-09 0:03
Calin Tatar3-Mar-09 0:03 
AnswerRe: krish Pin
Ashfield3-Mar-09 1:52
Ashfield3-Mar-09 1:52 
Questionaccess denied Pin
shefa' isied2-Mar-09 23:21
shefa' isied2-Mar-09 23:21 
AnswerRe: access denied Pin
monstale2-Mar-09 23:50
monstale2-Mar-09 23:50 
GeneralRe: access denied Pin
shefa' isied3-Mar-09 0:05
shefa' isied3-Mar-09 0:05 
GeneralRe: access denied Pin
EliottA3-Mar-09 3:00
EliottA3-Mar-09 3:00 
AnswerRe: access denied Pin
monstale3-Mar-09 4:19
monstale3-Mar-09 4:19 
QuestionKnowing when the date changes with less cost... Pin
Mel Feik2-Mar-09 23:19
Mel Feik2-Mar-09 23:19 
I have an application that writes any data it receives on a port to a file. The files have the date appended to them which means I have to keep an eye out for a new day to roll around.

At present I'm using this little bit of code...
DateTime today = DateTime.Now;
//..........
if (!(today.Date == DateTime.Now.Date))
{
    today = DateTime.Now;
    //... do my new day stuff
}

...which is straight forward enough. I am just wondering if there is a better (more efficient) means to know when the clock rolls over to a new day? As it is, I'm running that bit of code immediately before EVERY file write, and change the file name as needed. For now, its not an issue take the time to do things this way, but as my incoming data load increases I can see where streamlining is going to become an issue.

Any suggestions?

---------------------------------------------
Help... I'm embedded and I can't get out!

If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler

AnswerRe: Knowing when the date changes with less cost... Pin
#realJSOP2-Mar-09 23:44
mve#realJSOP2-Mar-09 23:44 
AnswerRe: Knowing when the date changes with less cost... Pin
J4amieC2-Mar-09 23:54
J4amieC2-Mar-09 23:54 
GeneralRe: Knowing when the date changes with less cost... Pin
Mel Feik5-Mar-09 12:31
Mel Feik5-Mar-09 12:31 
QuestionWait for program to continue till webbrowser finish loading site Pin
Member 44178922-Mar-09 22:31
Member 44178922-Mar-09 22:31 
AnswerRe: Wait for program to continue till webbrowser finish loading site Pin
Calin Tatar3-Mar-09 0:11
Calin Tatar3-Mar-09 0:11 
GeneralRe: Wait for program to continue till webbrowser finish loading site Pin
Member 44178923-Mar-09 2:48
Member 44178923-Mar-09 2:48 
GeneralRe: Wait for program to continue till webbrowser finish loading site Pin
Calin Tatar3-Mar-09 2:51
Calin Tatar3-Mar-09 2:51 
QuestionOutlook Add-in to Forward new arrived mails to other computer's Outlook via LAN Pin
mahesh_134_s2-Mar-09 19:52
mahesh_134_s2-Mar-09 19:52 
AnswerRe: Outlook Add-in to Forward new arrived mails to other computer's Outlook via LAN Pin
Shyam K Pananghat2-Mar-09 20:45
Shyam K Pananghat2-Mar-09 20:45 
QuestionRemote desktop Pin
yesu prakash2-Mar-09 19:35
yesu prakash2-Mar-09 19:35 
AnswerRe: Remote desktop Pin
Christian Graus2-Mar-09 19:56
protectorChristian Graus2-Mar-09 19:56 
GeneralRe: Remote desktop Pin
yesu prakash2-Mar-09 20:08
yesu prakash2-Mar-09 20:08 
AnswerRe: Remote desktop Pin
yesu prakash2-Mar-09 20:24
yesu prakash2-Mar-09 20:24 
GeneralRe: Remote desktop Pin
Shyam K Pananghat2-Mar-09 20:49
Shyam K Pananghat2-Mar-09 20:49 
Questionhow to write a binary tree in C#? Pin
Julia Washburn2-Mar-09 19:15
Julia Washburn2-Mar-09 19:15 
AnswerRe: how to write a binary tree in C#? Pin
shailendra jain2-Mar-09 19:38
professionalshailendra jain2-Mar-09 19:38 
AnswerRe: how to write a binary tree in C#? Pin
PIEBALDconsult3-Mar-09 3:55
mvePIEBALDconsult3-Mar-09 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.