MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / aspell_error_msg_box

Function aspell_error_msg_box

src/spellers/aspell.cpp:534–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void aspell_error_msg_box(HWND h_wnd, LPCSTR sz_error_msg) {
535 wchar_t sz_msg[MAX_PATH];
536#ifdef UNICODE
537 wchar_t szTemp[MAX_PATH];
538 ::MultiByteToWideChar(CP_ACP, 0, sz_error_msg, -1, szTemp, MAX_PATH);
539 swprintf(sz_msg, L"Error:\n%s", szTemp);
540#else
541 swprintf(szMsg, _T("Error:\n%s"), szErrorMsg);
542#endif
543 ::MessageBox(h_wnd, sz_msg, L"GNU Aspell", MB_OK);
544}

Callers 1

ignore_allMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected