1: HRESULT __stdcall CDictionary::LookupWord(char* lpszEword, char* lpszJword, 2: BOOL* pbResult)
3: {
4:
5: for(int i=0; i< m_nWord; i++)
6: {
7: // 英単語と比較する
8: if(!strcmp(dic[i].Eword_dic, (char *)lpszEword))
9: {
10: // 英単語が見つかった場合
11: strcpy(lpszJword, dic[i].Jword_dic);
12: *pbResult = FOUND;
13: return S_OK;
14: }
15: }
16: // 英単語が見つからない場合
17: strcpy(lpszJword, "[Not Found]");
18: *pbResult = NotFOUND;
19: return S_OK;
20: }