Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Friday, November 21, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase
Search:
What's New - What's Hot
More Categories for .NET Namespaces .NET Namespaces (1904)
.NET Framework Namespaces
More Categories for Applications Applications (883)
Management, Email, Graphics, Search..
More Categories for Articles & Samples Articles & Samples (37099)
Assembly, Caching, Controls, Reflection..
More Categories for Community Community (94)
Conferences, Chat Rooms, Jobs, Training..
More Categories for Component & Controls Component & Controls (994)
Forums, Management, Email, more..
More Categories for Developers Sites Developers Sites (130)
Sites dedicated to developer community..
More Categories for Developers Training Developers Training (233)
Training CD-ROMs, Videos, Courseware..
More Categories for Downloads Downloads (314)
Service Packs, Code, Msdn Show..
More Categories for Hosting Services Hosting Services (137)
ASP and ASP.Net Hosting sites..
More Categories for Introduction Introduction (334)
ASP, ADO.Net, C#, VB.NET, XML
More Categories for Knowledge Base Knowledge Base (2200)
Knowledge Base Articles, Samples, Tutorials, HowTos...
More Categories for Sample Chapters Sample Chapters (222)
Sample Chapters from Developer Books..
More Categories for Silverlight Silverlight (169)
Silverlight
More Categories for Support WebCasts Support WebCasts (635)
Microsoft's Support WebCasts

The CPerfTimer timer class        
Total Hits: 27  |  Today: 1 Author: Dean Wyant       Rating:  
Read Reviews | Write Review |   Your Rating: 

High resolution timing is supported in Win32 by the QueryPerformanceCounter and QueryPerformanceFrequency API calls. The timer resolution varies with the processor. Today's high speed processors have a timer resolution of less than a microsecond. Of course, this is a much better resolution than the GetTickCount API! Using the QueryPerformanceCounter calls directly takes too much typing and the resulting code is usually hard to read. So, I looked all over the net for a timer class but I could not...

Excel serial date to Day, Month, Year and vise versa        
Total Hits: 36  |  Today: 2 Author: Victor Vogelpoel       Rating:  
Read Reviews | Write Review |   Your Rating: 

For a little project of mine, I needed to convert a serial date number to day/month/year (DMY) and vise versa. The serial number came from date field in a converted Paradox database and seemed to be exactly the same as the serial date in Microsoft Excel, hence the article name. After some googling I learned that the Excel serial date is related to Julian date, and found a speedy algorithm to convert these numbers to DMY and vise versa....

CWeek - A class for getting the weekday and weeknumber        
Total Hits: 19  |  Today: 1 Author: Patrik Svensson       Rating:  
Read Reviews | Write Review |   Your Rating: 

This is my first attempt ever to write an article of any kind. I don't have much experience in programming, but I would love some feedback about this article in order to learn. English is not my primary language so be nice to me. :-) I'm currently working on a calender application with a friend of mine, and knowing the weekday and the weeknumber is somehow fundamental. ;) I can't remember where I found the algorithms and information necessary to know how to retrieve the weekday and weeknumber, b...

CMultimediaTimer - a periodic timer class        
Total Hits: 19  |  Today: 1 Author: John P. Curtis       Rating:  
Read Reviews | Write Review |   Your Rating: 

NB.A Multimedia timer is actually a seperate high priority thread so all the normal multithreading issues apply. As with worker threads, MFC objects should not be called directly from a timer callback due to the Handle Map hoodoo stored in the CWinThread local storage. CMultimediaTimer is not GUI specific as I use it to handle periodic activity in console applications....

SystemTime to VariantTime with Milliseconds        
Total Hits: 19  |  Today: 1 Author: skarapanahalli       Rating:  
Read Reviews | Write Review |   Your Rating: 

When you use the Microsoft Automation functions VariantTimeToSystemTime to convert variant time to system time and the SystemTimeToVariantTime to convert system time to variant time, the milliseconds value appears as zero or is ignored. This is known issue documented in MSDN knowledge base, under ID Q297463. However many times ignoring milliseconds is not a option. Two simple functions wrapping the original API functions can be used to convert SystemTime to VariantTime and vice versa without loo...

How to use time-zones in .NET under Windows        
Total Hits: 25  |  Today: 2 Author: kian01       Rating:  
Read Reviews | Write Review |   Your Rating: 

Time-zone handling in .NET 2.0 is restricted to converting between UTC and local (usually server) time. However, in order to display DateTime correctly to users in different regions, in particular, in web applications, you need to be able to convert DateTime between UTC (which is what you should always store in your DB) and the target time zone....

Y2K Bugs, And Why You Should Still Worry About Them        
Total Hits: 17  |  Today: 2 Author: Michael Dunn       Rating:  
Read Reviews | Write Review |   Your Rating: 

So you thought Y2K was behind us all? Not entirely. I've had some Y2K thoughts bouncing around in my head for a while, and with the new millennium really upon us now, I thought it would be a good time to talk about Y2K bugs and why you still need to be wary of them when writing code. This article talks about Y2K issues that were never addressed during the media blitz of 1999. The ideas can be applied to any programming language....

TaskTimer - an object to monitor task execution        
Total Hits: 29  |  Today: 1 Author: Ravi Bhavnani       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article describes TaskTimer, a lightweight object that lets you easily track a task's elapsed and remaining times. Although there are various CodeProject articles that describe this functionality, this article separates the GUI aspect of progress display from the time computation. Because TaskTimer isn't part of any control or dialog, you can make use of its functionality in any user interface. TaskTimer also handles pausing and restarting the task being timed....

Date and Time in C++        
Total Hits: 20  |  Today: 2 Author: RK_2000       Rating:  
Read Reviews | Write Review |   Your Rating: 

Aside from strings, another area where things are probably a little more messy in the C++ and Windows world than it needed to be, has to be the date and time area. Starting with C and with every library added, there are so many ways to get the date and time that people can easily get confused. So in this article I hope to summarize and somewhat simplify the various date and time functionalities in Windows C++....

How to get timings as fine-grained as one nanosecond or better        
Total Hits: 12  |  Today: 0 Author: Mark VanTassel       Rating:  
Read Reviews | Write Review |   Your Rating: 

Everyone has used good old time(NULL) to get timings accurate to the second. Some of you may have used GetSystemTime() to get sub-second timings. The really clever have found QueryPerformanceFrequency and QueryPerformanceCounter, which give timings accurate to a millisecond or better (for the record, I'm not among the really clever - I found out about those two by reading the Python documentation... Thanks, Guido!)....

High resolution date and time class        
Total Hits: 18  |  Today: 0 Author: Håkan Still       Rating:  
Read Reviews | Write Review |   Your Rating: 

The CHighTime and CHighTimeSpan are two classes for replacement of COleDateTime and COleDateTimeSpan. Instead of using a double for storing the date, it uses a 64 bit integer to store the date and time. The range is +/-29000 years and the smallest time span is 0.1 microseconds. As "everybody" knows that accuracy of floating point is not so good with small values. My experience says COleDateTime(Span) can not handle 1 second time and spans correctly. Sometimes I would get: (2sec-1sec) != 1sec ......

Tray Calendar        
Total Hits: 25  |  Today: 0 Author: Chris Maunder       Rating:  
Read Reviews | Write Review |   Your Rating: 

Tray Calendar is a freeware utility that I wrote after being amazed that
1. Microsoft did not bother to offer us a calender in the tray, and
2. People were charging good money for tiny little tray apps.
The idea is simple: Put the day of the month next to the clock in the system tray. It tells you todays date, and will update the number displayed when the date changes. 20 seconds after it starts it will reshuffle itself so that it is the right-most icon in the tray. This is usefu...


DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net