I was able to call Google Map API in my MFC project for years, but not any more(year 2018). Now my C++ based project shows a script error for Google Map API even after putting in a new API key.
How can I call the Google Map API and use it in Windows Applications based on c++ projects?
There are several ways to do a request to any API using c++, few examples are:
C++ light wrapper
Qt
CPR.
You may also edit your question and add what kind of errors if your problem isn't about deprecation or a specific library that you're using so you can get a fix solution.
Related
So I've done some digging, but came up with nothing thus far because I feel that this would be a close to impossible task. But I am more than willing to look on my own, I wanted to know if it was possible to access Google related resources using QT Creator. So For example if I wanted to use say Google analytics, what would I need to research? Would I need to have some sort of app-engine side?
Thanks!
You can access most of the Google products by using the corresponding API (AppEngine is not required for that). This link lists all available Google APIs. You can then access it using the Google API Client for C++, but the C++ binding seems to be in alpha.
Edit:
It seems that Google stopped the development and support of the C++ binding for their APIs. The library source code can still be found on Github.
I have a problem, and I know there are many ways to solve it. I hope you can help me chose the fittest.
I am developping an application mainly using Matlab, and I try to gradually shift some of its functionalities to c++. I develop on windows, for windows.
I am quite experienced in these two programming languages, but I know nothing of web development.
I want to add some functionalities to this application that will use some webservices hosted on a server protected by ssl.
I am alone on this project, but I can spend some time learning new stuff if need be.
I would like to know what tools you think I should better use for this task ?
So far, I have tried and failed the following approach :
calling the webservice directly from Matlab. I have added the self-signed ssl certificate to every truststore I could find on my computer, but I keep getting an error telling me that the certificate is not valid.
calling the webservice using gSoap and c++. For this, I need to rebuild the gSoap binaries with ssl capabilities. I tried too do so using visual studio and mingw/gcc but did not succeed, and I could not find any help online.
I have the feeling after a few hours/days browsing and looking for solution that the tools I try to use are not the most used and therefore not the best documented (and therefore not the best suited for a rookie), so what is your advice?
I think using gSoap from your C++ modules would be the best choice.
Information about using gSoap with SSL as client is available here: Secure SOAP Clients with HTTPS/SSL
A link about using gSoap for building a VS Application: Creating a gSoap eBay Client Application with Visual C++ 2008
May be this helps for using gSoap with MinGW: Using gSoap in Qt/Windows
I am developing a mobile application with MonoTouch and Mono for Android, and possibly Win8. I need to access the Facebook API, and I would prefer to do that in C# given the above mentioned platforms.
I know that I can make HTTP requests towards the Facebook API myself, but I am wondering if there are any libraries that wraps these for me and give me an object model to program against. I have done some searching around but have mostly come across libraries that are no longer supported or shut down.
Does anyone have recent experience with my problem and can give recommendations?
This should help you get started with the facebook integration using Mono for Android.
I am not sure what limitations (if any) there are with regard to using these libraries on a mobile device, but there are some Facebook SDK's for C#.
Here is one -
facebook-csharp-sdk
I have decided to follow a native approach to get as close to a seamless integration as I can get.
For iOS that means https://github.com/mono/monotouch-bindings/tree/master/facebook which are bindings to the official Objective-C Facebook SDK. I have done login so far and that was very easy. With the access token in place I can make future Facebook API calls from a library like the above or I can create a Mono class library with a service that wraps HTTP calls. This service can then be reused in any C# project (such as Mono for Android).
My plan is to do something similar for Android. I have seen people compile the java library in MonoDevelop as an AndroidResource and then create a wrapper which calls into the Java.
What API is available to use Facebook from C or C++, and is there a library to do the grunt work for me? (So that you for instance can use Facebook from a desktop program written in C++.)
Thanks sehe.
Yes you are able to develop Facebook application using C/C++.
Here's a good API http://projects.seligstein.com/facebook/
You can develop a Facebook Application in whatever language you want, as long as you can ask for data over the network. The API does not care what language you are using to query it. The SDKs are only there as a starting point for languages that are commonly used to write applications, such as JavaScript and PHP.
EDIT:
I know the question has already been "answered", but since the asker changed their question, here is information about repositories on github which may serve as starting points for modern Open Graph API C++ applications. All of these are open source :)
https://github.com/search?type=Repositories&language=C%2B%2B&q=facebook&repo=&langOverride=&x=14&y=20&start_value=1
sure you can my facebook Graph mobile app is developed using Qt c++
How do you use cloud storage such as Dropbox in your C++ Apllication ? I've checked out their API and they only have Java, Python, and Ruby options. If you cant use dropbox with a c++ app, is therte any cloud storage provider that has an API for C++.
The drop box APIs seem to be wrappers for a http interface.
So if you want to hit them up from C++ you can use a http supporting library like libcurl to access stuff using the REST api
Droper is an open source C++/Qt Dropbox client that I have recently wrote. It can be compiled for Windows and Linux, but the GUI is optimized for Symbian mobile phones. Check it out.
I've found several differnet APIs on their website, righ under the place you propably found the ruby / pathon stuff..
http://sharpbox.codeplex.com/
http://github.com/dkarzon/DropNet
Not sure if this is, wha you were looking for..