Ignore:
Timestamp:
12/09/15 06:47:21 (8 years ago)
Author:
cheese
Message:
  1. 클라이언트 UI ID/PW 입력 안하면 죽는 문제 수정
  2. UI 종료 함수 exit로 수정
  3. 그룹챗 인덱스 변수 형 때문에 나오는 warning 수정
  4. toOpenSession 함수 가끔 죽는 문제 수정
  5. generateRandom()에서 time()하던거 rand()로 수정
  6. sms 전송 url 및 sms 코드 생성 로직 대폭 수정 (주석 참고)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/msvc14/ChevMsgrClient_MFC/ChevMsgrClient_MFCDlg.cpp

    r32 r33  
    136136    {
    137137        AfxMessageBox(_T("¼­¹ö Á¤º¸ ÆÄÀÏÀ» ãÀ» ¼ö ¾øÀ½"));
    138         ::SendMessage(GetSafeHwnd(), WM_QUIT, NULL, NULL);
     138        exit(1);
    139139    }
    140140    std::string ip;
     
    147147    {
    148148        AfxMessageBox(str2cstr(chev.getLastError()));
    149         ::SendMessage(GetSafeHwnd(), WM_QUIT, NULL, NULL);
     149        exit(1);
    150150    }
    151151
     
    155155    {
    156156        AfxMessageBox(_T("login failed"));
    157         ::SendMessage(GetSafeHwnd(), WM_QUIT, NULL, NULL);
     157        exit(1);
    158158    }
    159159
     
    243243                SensitiveCtrl sc;
    244244
    245                 sc.sensitiveIdx = gDlg->scl[idx].chatList.size();
     245                sc.sensitiveIdx = (int)gDlg->scl[idx].chatList.size();
    246246                sc.timestamp = (int)time(NULL);
    247247                gDlg->scl[idx].sensitiveCtrl.push_back(sc);
     
    341341            SensitiveCtrl sc;
    342342
    343             sc.sensitiveIdx = gDlg->scl[idx].chatList.size();
     343            sc.sensitiveIdx = (int)gDlg->scl[idx].chatList.size();
    344344            sc.timestamp = (int)time(NULL);
    345345            gDlg->scl[idx].sensitiveCtrl.push_back(sc);
Note: See TracChangeset for help on using the changeset viewer.