Quantcast
Channel: Microsoft Translator User Forum (Including Bing Translator) forum
Viewing all articles
Browse latest Browse all 529

Bing / Microsoft Translator in C/C++ - example included

$
0
0

I created a C++ project that needs automated language translation services. None of the MS documentation has a C++ example (only C# and PHP).  Plus none were to be found on the web anywhere (at least nothing current with the latest authentication setup), so I made my own.

The first attempt uses the WinINet API with only the single key Microsoft.Translator.Translate method so far, but it would be easy enough to add more to it.

Example of it's simple interface:

Example 1

Normal output:

Sample output 1

Any special German characters would probably show up as garbage. It's possible with a few machinations to show such text (UTF-8) in a console, but this is only demonstration example for development.

Code and more here: (Blog) Bing / Microsoft Translator C++ example








Viewing all articles
Browse latest Browse all 529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>