Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use GetTimeZoneInformation Pin
CodingLover3-Jan-08 21:47
CodingLover3-Jan-08 21:47 
GeneralRe: How to use GetTimeZoneInformation Pin
dan o3-Jan-08 22:06
dan o3-Jan-08 22:06 
GeneralRe: How to use GetTimeZoneInformation Pin
CodingLover3-Jan-08 22:10
CodingLover3-Jan-08 22:10 
GeneralRe: How to use GetTimeZoneInformation Pin
CodingLover6-Jan-08 19:49
CodingLover6-Jan-08 19:49 
GeneralRe: How to use GetTimeZoneInformation Pin
dan o6-Jan-08 22:28
dan o6-Jan-08 22:28 
GeneralRe: How to use GetTimeZoneInformation Pin
CodingLover6-Jan-08 22:39
CodingLover6-Jan-08 22:39 
GeneralRe: How to use GetTimeZoneInformation Pin
dan o6-Jan-08 23:10
dan o6-Jan-08 23:10 
GeneralRe: How to use GetTimeZoneInformation Pin
CodingLover6-Jan-08 23:27
CodingLover6-Jan-08 23:27 
Oops, it's work.

I have to clear the array after certain time I think. Do this after some time of use the array.

m_pszTimeZones.RemoveAll();


Now seems it is work.

Another thing also tested by me.

On comparing of user input with array element, if the user input is not found what happened.

for(i=0;i<=m_pszTimeZones.GetUpperBound();i++)
{
    strTest = m_pszTimeZones.GetAt(i);
    strTemp = m_pszTimeZones.GetAt(i);
    stdTT = m_pszNames.GetAt(i);
    strTest = strTest.Mid(4,6);
    if ( strTest == strIn)
    {
        // Here find the correct zone name
        SetDetails(strTemp);
        SetDlgItemText(IDC_STD, stdTT);
        break;
    }
    else
    {
        AfxMessageBox("Error");
        break;
    }
}


This is what I have tried. Because of the second break it wont iterate. If removed the second break, get the error message until it is found. How should I avoid it.

I appreciate your help all the time...
Eranga Smile | :)

GeneralRe: How to use GetTimeZoneInformation Pin
dan o6-Jan-08 23:43
dan o6-Jan-08 23:43 
GeneralRe: How to use GetTimeZoneInformation Pin
CodingLover6-Jan-08 23:57
CodingLover6-Jan-08 23:57 
QuestionQuite similer application Pin
CodingLover7-Jan-08 18:33
CodingLover7-Jan-08 18:33 
GeneralRe: Quite similer application Pin
dan o8-Jan-08 1:05
dan o8-Jan-08 1:05 
GeneralSome API Pin
john56321-Jan-08 18:46
john56321-Jan-08 18:46 
GeneralRe: Some API Pin
Naveen1-Jan-08 18:52
Naveen1-Jan-08 18:52 
GeneralRe: Some API Pin
Nishad S1-Jan-08 19:01
Nishad S1-Jan-08 19:01 
Generalverifying file path Pin
neha.agarwal271-Jan-08 18:25
neha.agarwal271-Jan-08 18:25 
GeneralRe: verifying file path Pin
Nishad S1-Jan-08 18:48
Nishad S1-Jan-08 18:48 
GeneralRe: verifying file path Pin
Naveen1-Jan-08 18:49
Naveen1-Jan-08 18:49 
GeneralRe: verifying file path Pin
Rahul Vaishnav1-Jan-08 19:24
Rahul Vaishnav1-Jan-08 19:24 
GeneralRe: verifying file path Pin
ThatsAlok1-Jan-08 21:35
ThatsAlok1-Jan-08 21:35 
GeneralRe: verifying file path Pin
Hamid_RT2-Jan-08 2:45
Hamid_RT2-Jan-08 2:45 
GeneralSending or posting message from a new created thread Pin
Md. Ali Naser Khan1-Jan-08 18:23
Md. Ali Naser Khan1-Jan-08 18:23 
GeneralRe: Sending or posting message from a new created thread Pin
Haroon Sarwar1-Jan-08 18:46
Haroon Sarwar1-Jan-08 18:46 
QuestionRe: Sending or posting message from a new created thread Pin
Nishad S1-Jan-08 18:47
Nishad S1-Jan-08 18:47 
GeneralRe: Sending or posting message from a new created thread Pin
Md. Ali Naser Khan1-Jan-08 19:01
Md. Ali Naser Khan1-Jan-08 19:01 

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.