Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Confusedguy

    I am so lost.

    Woo! I figured it out, without having to do any crazy type conversions, either. I used int TimeCompare = DateTime::Compare(ct, st); if (TimeCompare >= 0) { //Throw error } Anyone have any idea how to shut the system down in XP now?
  2. Confusedguy

    I am so lost.

    Ok, so I figured something out here. Looked up DateTime and found out this little snippet, which works for grabbing the time: //Get current time ct = DateTime::Now; Now, what I want to do is compare that to a DateTimePicker object's value (what the user will set the time to shutdown to be)...
  3. Confusedguy

    I am so lost.

    Alright... I'm looking absolutely everywhere in MSDN to try and figure this out... but to no avail. I'm trying to get the current time in my Windows Forms Application. All the code I find, doesn't work. I tried this snippet I found in MSDN: char timebuf[128]; _strtime_s(timebuf); NOW: how do I...

Part and Inventory Search

Back
Top