Language translator Delphi - delphi

I am busy with a project where I have to code a program in Delphi that will translate an English word to another language. What would be the easiest way to approach this? I was thinking about using Microsoft Translator V2 API from Delphi, but it seems very complicated and I am not yet that experienced in Delphi. Any other suggestions?
Thanks in advance :)

Thanks to RRUZ you can follow this article about Microsoft Translator V2 API implementation for Delphi; inluding the full (even speaking) example.

If you don't have to be self-contained, you could make a webservice call (soap, etc..) to the cloud (google, etc..). The nature of your app (is it a translation program? or do you just want to provide translation in another app, along with spellcheck, thesaurus, syntax highlight, etc..?) will determine whether this is feasible or not.

Related

how can I implement text-2-speech function in iOS app via firemonkey?

I have a iOS APP needs to spell out the words or phrase so the listener can type in the words they hear. How to implement text2speech with Delphi Firemonkey?
tried searching around the net, none useful found.
With help from EMBT, I found a solution from https://blog.grijjy.com/2017/01/09/cross-platform-text-to-speech/ It is a good solution to mine. Just wondered why EMBT NOT do this? Encapsulating such simple and important function to a special group directly from iOS/OSX foundations is easy,handy but important for developers using Delphi. FireMonkey has no such functions. Don't know what to say about this. EMBT seems having difficulty to find the key point as always.

how useful is Cling C++ JIT interpreter developed at CERN?

I recently watched great google talks speech about Cling - C++ language interpreter. But I wonder if anyone except people at CERN (where it is developed) are using Cling, and how good it is from non-collider-physics-scientist point of view, can you write desktop apps with it?
There are some videos of uses cases different from the High Energy Physics: http://www.youtube.com/results?search_query=cling+c%2B%2B (I think first couple are the relevant ones)
It has the potential to be very useful, but it is very young. There is no documentation that I could find, no dedicated mailing list, no online tutorials. I was able to get small toy code to run, but couldn't figure out how to use it productively on a large library yet.
Cling project is well established one. You can find more information in their official website cling. They also have a forum
Thanks

API hooks discrepency

I have been trying to understand the concept of 'hooking' APIs and am currently facing a problem. I hope that experts here can clear it:
By going through a header file I noticed that the LoadLibrary function is actually mapped to one of the following two: LoadLibraryW or LoadLibraryA based on the flag used during compilation (UNICODE or ASCII, respectively). Now, if I have explicitly hooked the API 'LoadLibraryA' then will my hooked function get the control if it is compiled using the UNICODE flag?
It would be great if someone could explain or point me to a link that explains in detail how hooking works in such cases? How do compilation flags, character sets, locale, internationalization, impact hooking of APIs like LoadLibrary or CreateFile?
I'm currently in South Korea (Originally from UK) and for some reason some of my application is not working and I have a demo tomorrow. I presume the above mentioned doubt is the reason for the problem I'm facing.
I think that you need to read carefully this bible of api hooking Hooking in theory which explains everything about hooking like different approaches of hooking, lot of diagrams.... and also this one example. My suggestion is to use LoadLibraryW because it is superset of Acsii.
Bye

What platform/language does Roomba use?

Out of curiousity, does anybody know the platform and programming language used to program the Roomba? I'm not so much talking about aftermarket kits but what is used to implement the algorithm at the factory?
Per this link, Roomba's microcontroller is a Freescale (ex-Motorola) MC9S12E -- what iRobot specifically uses in terms of programming languages may be their trade secret, but I believe such devices are typically programmed in assembly and C, e.g. with this kit.
I was doing some dev work on a iRobot Create. I'm using WinAVR and the code is in C.
You can get a dev kit for under $300.00
http://store.irobot.com/shop/index.jsp?categoryId=3311368
The Linux Journal had an article about using Python with the iRobot Create which is based off the Roomba.
http://www.linuxjournal.com/article/10262
It may not be what they use in the factory, but it looks like it would be the best way to hack a Roomba-esque floor crawling bot.

Where can I find sample Delphi code or component for accessing exchange/outlook contacts and appointments?

I need Delphi code or component for accessing exchange/outlook contacts and appointments? I probably need to use Extended MAPI. This is for a proof of concept so I'm not ready to shell out big bucks at the moment. Any hints, links, experiences??
Look this
Create an appointment in MS Outlook
http://www.scalabium.com/faq/dct0128.htm
Contact list in MS Outlook
http://www.scalabium.com/faq/dct0145.htm
Look at EasyMAPI from Rapware.
Not free, but well worth the price. I used this a couple of years ago. The author was really helpful and open to adding new functionality.
at our company we used the converted Extended mapi C/C++ headers (to delphi) and examples from here http://www.imibo.com/imidev/delphi/les/index.html. it doesn't cost that much at least i think so.
We used it to create a sync service that would synchronized tasks, contacts and appointments from our own agenda which was build before i worked at the company with exchange directly.
The plus side is you can use MSDN since basically everything is the same as what's written there and you have full control but it's rather "low level"
I'm not really certain if it is that what you need, but you don't really need outlook to be installed to access the messages then (on exchange). If you just need outlook you could try OLE or some of the other suggestions.
I'm not sure if TurboPower OfficePartner supports the features you're looking for, but it's free (as in open source) and might be worth a look:
http://sourceforge.net/projects/tpofficepartner/

Resources