API for C/C++ programs. Which technique? [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Please, could you explain, which technique is common for developing API for C/C++ programs?
One example is sockets. And what else?
Thanks...

Have a look at the APIs standardised by the Khronos Group. They have a well-established convention of defining library interfaces in a concise way.
No, they probably don't hold the Guiness record for "Most convenient API", but they indeed could have one for "Most consistent API stanard", "Best legacy API deprecation model" or something of those sorts.
One example of such API is the OpenGL's.

Don't develop your own system API. There's plenty of documentation on them already.

Related

Handling Apple events from console app on Mac [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Please give me some hints about how to work and, more practically, handle Apple events from raw console application written in C++ on Mac. I know that there is huge infrastructure for this purpose in Cocoa but as I think this is only a wrapper.
May be it's impossible?
There is C API for it:
http://developer.apple.com/legacy/mac/library/#documentation/Carbon/Reference/Open_Scripti_Architecture/Reference/reference.html
and
http://developer.apple.com/legacy/mac/library/#documentation/Carbon/Reference/Apple_Event_Manager/Reference/reference.html
Overview:
http://developer.apple.com/legacy/mac/library/#documentation/AppleScript/Conceptual/AppleEvents/intro_aepg/intro_aepg.html
But as you can see that Apple considers this as legacy nowadays, so for a new project, using the Objective-C APIs might be the better choice.

Download a file in C++ (without external libraries) [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
It is possible to download a file from an URL with C++ WITHOUT ADDING external resources, like libCURL? Thanks in advance!
It sure is. But it takes a lot of time.
BTW, why don't you want to use libCURL.
Sure, because libCURL is written. What you need is to implement it yourself. Check socket programming for that.
If you read the C++ standard, there is no standard library for networking as of today. There are however plans to include such a library in future versions of the C++ standard.
SG4 (Study Group responsible for networking library) has recently set up a wiki on Github

Contributing to an opensource C++ library [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How should i get it, by SVN?
Can i use Eclipse and its Subversive Team Provider add on to manage my changes?
Then if i make some changes how can i commit, who decide that my changes are friendly and good enough?
To be honest i want to try to contribute to some library, because of motivation that contribution provides me on learning C++ details.
I search and read a little about Boost, but i think it is too complicated to be a starting point.
Thus can you provide a path to start and become an open source library contributor?
Well, the very first step is to actually read the FAQ. That's always a good start.
Especially the "How can I contribute to development?" question.
http://www.boost.org/users/faq.html

What's the most recommended cross platform C++ library? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is there something like jQuery that works the same in all browsers in the c/c++ world that will work consistently in all platforms?
Are you talking about for GUI elements? Qt is very popular.
Gnulib is intended to act as a facade for the system's native libc.
Depends on what you want to do. Boost is one of the most used one.

are twitter web services "discoverable"? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Let me know your thoughts...
Do you want like a WSDL / WADL for Twitter's web services?
I found a WADL here, but it's not maintained by Twitter.
That said though, I don't think their services really need to be 'discoverable'. They're extremely easy to use, all you need to do is look at their API documentation to figure out how to make the call.
For example, here are the docs for searching. It should have everything you need, except the code :).
You could probably also find a library written in the language of your choice that implements the API.