⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aspell.cpp

📁 SpellChecker平写检测程序原代码,希望大家喜欢,他非常好用
💻 CPP
📖 第 1 页 / 共 3 页
字号:
PFUNC_aspell_module_info_list_elements              aspell_module_info_list_elements              = NULL;
PFUNC_get_aspell_dict_info_list                     get_aspell_dict_info_list                     = NULL;
PFUNC_aspell_dict_info_list_empty                   aspell_dict_info_list_empty                   = NULL;
PFUNC_aspell_dict_info_list_size                    aspell_dict_info_list_size                    = NULL;
PFUNC_aspell_dict_info_list_elements                aspell_dict_info_list_elements                = NULL;
PFUNC_aspell_module_info_enumeration_at_end         aspell_module_info_enumeration_at_end         = NULL;
PFUNC_aspell_module_info_enumeration_next           aspell_module_info_enumeration_next           = NULL;
PFUNC_delete_aspell_module_info_enumeration         delete_aspell_module_info_enumeration         = NULL;
PFUNC_aspell_module_info_enumeration_clone          aspell_module_info_enumeration_clone          = NULL;
PFUNC_aspell_module_info_enumeration_assign         aspell_module_info_enumeration_assign         = NULL;
PFUNC_aspell_dict_info_enumeration_at_end           aspell_dict_info_enumeration_at_end           = NULL;
PFUNC_aspell_dict_info_enumeration_next             aspell_dict_info_enumeration_next             = NULL;
PFUNC_delete_aspell_dict_info_enumeration           delete_aspell_dict_info_enumeration           = NULL;
PFUNC_aspell_dict_info_enumeration_clone            aspell_dict_info_enumeration_clone            = NULL;
PFUNC_aspell_dict_info_enumeration_assign           aspell_dict_info_enumeration_assign           = NULL;
PFUNC_new_aspell_string_list                        new_aspell_string_list                        = NULL;
PFUNC_aspell_string_list_empty                      aspell_string_list_empty                      = NULL;
PFUNC_aspell_string_list_size                       aspell_string_list_size                       = NULL;
PFUNC_aspell_string_list_elements                   aspell_string_list_elements                   = NULL;
PFUNC_aspell_string_list_add                        aspell_string_list_add                        = NULL;
PFUNC_aspell_string_list_remove                     aspell_string_list_remove                     = NULL;
PFUNC_aspell_string_list_clear                      aspell_string_list_clear                      = NULL;
PFUNC_aspell_string_list_to_mutable_container       aspell_string_list_to_mutable_container       = NULL;
PFUNC_delete_aspell_string_list                     delete_aspell_string_list                     = NULL;
PFUNC_aspell_string_list_clone                      aspell_string_list_clone                      = NULL;
PFUNC_aspell_string_list_assign                     aspell_string_list_assign                     = NULL;
PFUNC_new_aspell_string_map                         new_aspell_string_map                         = NULL;
PFUNC_aspell_string_map_add                         aspell_string_map_add                         = NULL;
PFUNC_aspell_string_map_remove                      aspell_string_map_remove                      = NULL;
PFUNC_aspell_string_map_clear                       aspell_string_map_clear                       = NULL;
PFUNC_aspell_string_map_to_mutable_container        aspell_string_map_to_mutable_container        = NULL;
PFUNC_delete_aspell_string_map                      delete_aspell_string_map                      = NULL;
PFUNC_aspell_string_map_clone                       aspell_string_map_clone                       = NULL;
PFUNC_aspell_string_map_assign                      aspell_string_map_assign                      = NULL;
PFUNC_aspell_string_map_empty                       aspell_string_map_empty                       = NULL;
PFUNC_aspell_string_map_size                        aspell_string_map_size                        = NULL;
PFUNC_aspell_string_map_elements                    aspell_string_map_elements                    = NULL;
PFUNC_aspell_string_map_insert                      aspell_string_map_insert                      = NULL;
PFUNC_aspell_string_map_replace                     aspell_string_map_replace                     = NULL;
PFUNC_aspell_string_map_lookup                      aspell_string_map_lookup                      = NULL;
PFUNC_aspell_string_pair_enumeration_at_end         aspell_string_pair_enumeration_at_end         = NULL;
PFUNC_aspell_string_pair_enumeration_next           aspell_string_pair_enumeration_next           = NULL;
PFUNC_delete_aspell_string_pair_enumeration         delete_aspell_string_pair_enumeration         = NULL;
PFUNC_aspell_string_pair_enumeration_clone          aspell_string_pair_enumeration_clone          = NULL;
PFUNC_aspell_string_pair_enumeration_assign         aspell_string_pair_enumeration_assign         = NULL;


BOOL LoadAspell(void)
{
    BOOL    bRet = FALSE;
    HKEY    hKey = NULL;

    if (ERROR_SUCCESS == ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Aspell"), 0, KEY_READ, &hKey))
    {
		DWORD   size    = MAX_PATH;
		TCHAR   pszPath[MAX_PATH];

		if (ERROR_SUCCESS == ::RegQueryValueEx(hKey, _T("Path"), NULL ,NULL, (LPBYTE)pszPath, &size))
		{
			_tcscat(pszPath, _T("\\aspell-15.dll"));
			hInstLib = LoadLibrary(pszPath);

			if (hInstLib != NULL)
			{
				aspell_mutable_container_add                  = (PFUNC_aspell_mutable_container_add                 )GetProcAddress(hInstLib, "aspell_mutable_container_add");
				aspell_mutable_container_remove               = (PFUNC_aspell_mutable_container_remove              )GetProcAddress(hInstLib, "aspell_mutable_container_remove");
				aspell_mutable_container_clear                = (PFUNC_aspell_mutable_container_clear               )GetProcAddress(hInstLib, "aspell_mutable_container_clear");
				aspell_mutable_container_to_mutable_container = (PFUNC_aspell_mutable_container_to_mutable_container)GetProcAddress(hInstLib, "aspell_mutable_container_to_mutable_container");
				aspell_key_info_enumeration_at_end            = (PFUNC_aspell_key_info_enumeration_at_end           )GetProcAddress(hInstLib, "aspell_key_info_enumeration_at_end");
				aspell_key_info_enumeration_next              = (PFUNC_aspell_key_info_enumeration_next             )GetProcAddress(hInstLib, "aspell_key_info_enumeration_next");
				delete_aspell_key_info_enumeration            = (PFUNC_delete_aspell_key_info_enumeration           )GetProcAddress(hInstLib, "delete_aspell_key_info_enumeration");
				aspell_key_info_enumeration_clone             = (PFUNC_aspell_key_info_enumeration_clone            )GetProcAddress(hInstLib, "aspell_key_info_enumeration_clone");
				aspell_key_info_enumeration_assign            = (PFUNC_aspell_key_info_enumeration_assign           )GetProcAddress(hInstLib, "aspell_key_info_enumeration_assign");
				new_aspell_config                             = (PFUNC_new_aspell_config                            )GetProcAddress(hInstLib, "new_aspell_config");
				delete_aspell_config                          = (PFUNC_delete_aspell_config                         )GetProcAddress(hInstLib, "delete_aspell_config");
				aspell_config_clone                           = (PFUNC_aspell_config_clone                          )GetProcAddress(hInstLib, "aspell_config_clone");
				aspell_config_assign                          = (PFUNC_aspell_config_assign                         )GetProcAddress(hInstLib, "aspell_config_assign");
				aspell_config_error_number                    = (PFUNC_aspell_config_error_number                   )GetProcAddress(hInstLib, "aspell_config_error_number");
				aspell_config_error_message                   = (PFUNC_aspell_config_error_message                  )GetProcAddress(hInstLib, "aspell_config_error_message");
				aspell_config_error                           = (PFUNC_aspell_config_error                          )GetProcAddress(hInstLib, "aspell_config_error");
				aspell_config_set_extra                       = (PFUNC_aspell_config_set_extra                      )GetProcAddress(hInstLib, "aspell_config_set_extra");
				aspell_config_keyinfo                         = (PFUNC_aspell_config_keyinfo                        )GetProcAddress(hInstLib, "aspell_config_keyinfo");
				aspell_config_possible_elements               = (PFUNC_aspell_config_possible_elements              )GetProcAddress(hInstLib, "aspell_config_possible_elements");
				aspell_config_get_default                     = (PFUNC_aspell_config_get_default                    )GetProcAddress(hInstLib, "aspell_config_get_default");
				aspell_config_elements                        = (PFUNC_aspell_config_elements                       )GetProcAddress(hInstLib, "aspell_config_elements");
				aspell_config_replace                         = (PFUNC_aspell_config_replace                        )GetProcAddress(hInstLib, "aspell_config_replace");
				aspell_config_remove                          = (PFUNC_aspell_config_remove                         )GetProcAddress(hInstLib, "aspell_config_remove");
				aspell_config_have                            = (PFUNC_aspell_config_have                           )GetProcAddress(hInstLib, "aspell_config_have");
				aspell_config_retrieve                        = (PFUNC_aspell_config_retrieve                       )GetProcAddress(hInstLib, "aspell_config_retrieve");
				aspell_config_retrieve_list                   = (PFUNC_aspell_config_retrieve_list                  )GetProcAddress(hInstLib, "aspell_config_retrieve_list");
				aspell_config_retrieve_bool                   = (PFUNC_aspell_config_retrieve_bool                  )GetProcAddress(hInstLib, "aspell_config_retrieve_bool");
				aspell_config_retrieve_int                    = (PFUNC_aspell_config_retrieve_int                   )GetProcAddress(hInstLib, "aspell_config_retrieve_int");
				aspell_error_number                           = (PFUNC_aspell_error_number                          )GetProcAddress(hInstLib, "aspell_error_number");
				aspell_error_message                          = (PFUNC_aspell_error_message                         )GetProcAddress(hInstLib, "aspell_error_message");
				aspell_error                                  = (PFUNC_aspell_error                                 )GetProcAddress(hInstLib, "aspell_error");
				delete_aspell_can_have_error                  = (PFUNC_delete_aspell_can_have_error                 )GetProcAddress(hInstLib, "delete_aspell_can_have_error");
				new_aspell_speller                            = (PFUNC_new_aspell_speller                           )GetProcAddress(hInstLib, "new_aspell_speller");
				to_aspell_speller                             = (PFUNC_to_aspell_speller                            )GetProcAddress(hInstLib, "to_aspell_speller");
				delete_aspell_speller                         = (PFUNC_delete_aspell_speller                        )GetProcAddress(hInstLib, "delete_aspell_speller");
				aspell_speller_error_number                   = (PFUNC_aspell_speller_error_number                  )GetProcAddress(hInstLib, "aspell_speller_error_number");
				aspell_speller_error_message                  = (PFUNC_aspell_speller_error_message                 )GetProcAddress(hInstLib, "aspell_speller_error_message");
				aspell_speller_error                          = (PFUNC_aspell_speller_error                         )GetProcAddress(hInstLib, "aspell_speller_error");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -