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
Related
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.
I'm making a program to setup a server, but I can't find out how to download a file from the internet in the c++ program. Preferably downloading a library or something.
Also, I am still a beginning programmer.
I'm using:
Microsoft Windows 7 Professional 64x
Notepad ++
Borland's C++ compiler v5.1
There are many ways of doing that. The best for you way to go about this, in my opinion, is by using cURL library (aka libcurl). Start from reading some documentation. This example can also be helpful as it does exactly that. And of course you can always go other (less popular?) ways:
Use Qt Network library (example).
Use Poco C++ Libraries (here is some introductory PDF).
Find some other libraries and try them out.
Do it yourself.
Hope it helps.
Well, based on the choice of compiler, I see you want the hard way. WinInet will work. If you feel very adventurous, try windows sockets.
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
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.
I want to develope a firewall for Linux. I prefer C/C++ language.
Is there any simple sample code for writing a firewall?
Which libraries should I use?
Update: There are some firewalls for Linux, but I want develope a simple firewall for learning.
You can start by using the Netfilters API (http://www.netfilter.org/). I think it is a good starting point for packet filtering. I've worked a lot with this API in kernel space. I'm not sure if there is a library for user land, but I must tell you that it's pretty easy to develop something with netfilters in the kernel.
As an example, iptables use the netfilters API.
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.
hey i need c++ program to edit windows registry
One good program is Regedit.exe. It is probably written in C++.
Qt has an excellent framework for editing registy - that is, QSettings. And for bonus points, if you happen to change your mind and go Linux, your code would still work, storing your data in .ini-style configuration files.
Take note that Qt is very fat for a C++ library, but also very functional. There's a crazy lot you can do with it. I also absolutely recommend it for GUI.
There are probably a thousand small C++ wrappers for registry access. Of course I wrote my own, too. See the class RegistryKey in my envvc program. It's only read-only access, but you'll get the idea.
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.