Using the C++ Spell Checking API

Using the C++ Spell Checking API

Learn how to add spell checking to your applications. Did you know that Windows includes a native Spell Checking API designed for C++ developers?

Did you know that Windows includes a native Spell Checking API designed for C++ developers?

I've spent a lot of time teaching developers how to build modern applications for Windows using C++ and Direct2D. Along with this comes the powerful DirectWrite text layout and rendering engine, but users have come to expect more than just pretty pixels. They want useful features like spell checking that are pervasive throughout the applications they use. Now you can easily add spell checking to your own applications using the Spell Checking API. In this month's column, I'm going to introduce this API. Next month I'll show you how to apply modern C++ techniques to produce a more intuitive and elegant programming experience.

The Spell Checking API is exposed via a set of COM-style interfaces. It relies on COM activation, so I'll need to call CoInitializeEx to initialize the COM library and set the thread's concurrency model:

HR(CoInitializeEx(nullptr, // reserved
                  COINIT_MULTITHREADED));

I'm assuming there's an inline function that will check the HRESULT and throw an exception if it's not S_OK. Something like this:

api programming

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Top 10 API Security Threats Every API Team Should Know

Learn what are the most important API security threats engineering leaders should be aware of and steps you can take to prevent them

An API-First Approach For Designing Restful APIs | Hacker Noon

I’ve been working with Restful APIs for some time now and one thing that I love to do is to talk about APIs.

Public ASX100 APIs: The Essential List

The method used for this initial research was to obtain a list of the ASX100 (as of 18 September 2020). Then work through each company looking at the following

5 Major Factors Impacting the Evolution of APIs

In today’s world of ever-increasing digital interconnectivity, APIs have emerged as essential tools for integrating data efficiently and cost-effectively. In this article we'll talk about the following five main factors behind the remarkable evolution of APIs in recent years

What Are Good Traits That Make Great API Product Managers

What is API product management and what can you be doing to be a better API product manager — get aligned with SaaS and enterprise software requirements. This guide lays out what is API product management and some of the things you should be doing to be a good product manager.