myspellcheck.cpp
来自「管理项目进度工具的原代码」· C++ 代码 · 共 33 行
CPP
33 行
// MySpellCheck.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "..\shared\ispellcheck.h"
#include "..\shared\spellchecker.h"
BOOL APIENTRY DllMain( HANDLE /*hModule*/,
DWORD /*ul_reason_for_call*/,
LPVOID /*lpReserved*/
)
{
return TRUE;
}
DLL_DECLSPEC ISpellChecker* CreateSpellCheckerInterface(const char* szAffPath, const char* szDicPath)
{
// some simple checks first
if (GetFileAttributes(szDicPath) == 0xffffffff)
return NULL;
CSpellChecker* pSC = new CSpellChecker(szAffPath, szDicPath);
if (!pSC->IsValid())
{
delete pSC;
pSC = NULL;
}
return pSC;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?