Quote Originally Posted by maverick786us View Post
yes while debugging only I saw when I initialize it, with current date, its m_status value comes out to be invalid...
You are not understanding the suggestion to debug it. You need to step into the MFC source code and determine exactly where the call is failing. MFC uses various time-related functions (time(), GetLocalTime(), GetSystemTime(), GetTimeZoneInformation(), etc.) and somewhere in that source code you should be able to determine the point of failure and why it is happening.