如何在程序里实现拼写检查功能?组件?在线等待!!

解决方案 »

  1.   

    你可以使用正则表达式组件,他对文本的检查能力是超乎寻常的强大,你可以使用boost库中的正则表达库,一可以使用微软的。我用的是前辈封装好的一个组件,用的是boost库,如果需要可以发给你,具体那个网站下的我忘了
      

  2.   

    我得邮箱[email protected],万分感谢!!
      

  3.   

    A Spell Check IE Menu Extension
    By Shaun Wilde An IE Menu Extension that allows you to Spell Check your form submissions  Introduction
    One of the many things that I have found lacking when using Web Based Forums, such as CodeProject, is the lack of spell checking facilities within IE. So that I can post messages on forums that do not contain spelling mistakes I created this little tool that allows you to check the spelling of certain words using the Google Spelling API. Installation
    Extract the signed TxtSpell.dll from the ZIP file and install using regsvr32. Visit and register with the Google Spelling API site to get a Key to use with the DLL. This key will be stored in the registry under HKEY_CURRENT_USER\Software\Many Monkeys Limited\SpellChecker\Google. The object will ask you for the Key when it requires it, so keep it to hand. Usage
    Once installed the Spell Checker is easy to use. Select a word or words (up to 10) in the form that you wish to check the spelling of and select the Spell Check option from the context menu.  
    If Google decides that the words are incorrect then a new set of words will be returned and will be used to replace the currently selected text.  
    If there is an error that maybe attributed to an incorrect or missing Key (not 100%). Then the following install screen will popup. This install window can be used to install a new Key and check if it works.  
    References
    Menu Extensions
    Google Spelling API LimitationsSometimes the install screen appears when the error is not due to an incorrect key but a problem with the Google service. However these are very rare. 
    The number of words that can be checked in one go is 10. This limit is imposed by the Google web service. 
    If all the words are correct or appear to be then Google returns no answer and this is currently interpreted to be an error. Future work
    It is intended to use a different spell checking mechanism that will allow the user to select from a collection of words when a mis-spelt word is found. It is also intended to provide source code once I have integrated another spell checking mechanism such that there would be more than a few lines of non-wizard code. I hope you find this tool useful. Please feel free to comment and offer suggestions. 
    About Shaun Wilde Been involved in programming from the early '80s. First on my Spectrum, then an Amstrad. Did lots of Fortran while at University before becoming involved in Forth, Prolog, Pascal, Occam, C and eventually C++. Eventually started programming on the Windows platform using Borland’s OWL framework, during my postgraduate years. When I started work in '94, I learnt MFC followed by COM and ATL and never looked back. Now working exclusively in .NET, working on WinForms, ASP.NET and the Compact Framework using C# and VB.NET. Using every bit of the .NET framework I can such as WebServices and writing my own controls for my .NET Portal, and for the Compact Framework. Still lots I don't know, but the end of the universe hasn't happened yet - I wonder if I'll have time?I was a permanent employee for a number of companies until Dec 2000 before going independent after the DotCom I ws involved with went DotBomb.Now supplying consulting services to various institutions in London and the SE and I don't get much time to program for myself or to work on my website (www.many-monkeys.com).Spend most of my spare time with the wife+kids or working on my Marine Fish tank. Who needs a screen saver to stare at when you can have the real thing!
    Click here to view Shaun Wilde's online profile.
     
      

  4.   

    http://www.codeproject.com/useritems/txtspell.asp