As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Is there any way to get data removed metadata(for example, ID3) from mp3 file with Objective-C, C++, or C?
there are similar function in PHP.
Unfortunately not. Use a library (For ID3, there are library implementations listed on ID3.org).
If for some reason you cannot use a library, removing a single ID3 tag from a file is quite a trivial process (search for the characters 'ID3' and then look at the header to get the tag size in bytes (details of the header found here). The tag will be contiguous so you can just remove it using a file descriptor.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I need library to read text from files such as doc, docx, xls, xlsx, hwp, pdf, etc. on c++.
I think there is a library to support this function but i have googled it and found none.
I'll keep searching but can somebody introduce any library to me?
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Do you know any type of tool, possibly for Linux and open source, that can be used to extract statistics from C/C++ source code files.
Apart from the number of lines, I would be interested in:
number of comment lines
number of classes used
number of declarations
and so on.
I use CLOC (http://cloc.sourceforge.net/) for counting lines of code, blank lines and comments. However CLOC does not interpret the code and thus cannot count classes, declarations etc.
And one should probably mention that this kind of statistics is considered meaningless by most people...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
How could I embed or associate an .exe into an ordinary file, like .jpeg or any video etc.
? I want to associate the opening of the ordinary file with the execution of an executable program.
What you're trying to do is intended not to be possible. If and when it does happen, it takes place by exploiting a flaw in the program reading the file. This might take place (this is more common when the program is written in C or C++) by storing out-of-range values in the headers and hoping the program does not validate them before using them as offsets in memory, or (this is more common in higher-level languages) by taking advantage of a logical error in some overgrown feature the format intentionally allows (like embedding javascript).
Beyond this, I think any further answer is off-topic on SO. This is not a site for getting help writing malware.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am working with a C++ project whose application setting is a simple text file. Now i want to replace the file with XML based configuration. So which xml parser should i use?
Look at TinyXML or TinyXML++, it's small and easy.
You can also use the boost::property_tree, as someone already mentioned.
Here is a nice tutorial for using it to read/write xml.
Plenty of choice. Selecting a parser with XPATH support is often very handy in this circumstance. libxml+ with libXml2 does the job nicely - and libxml2 is included in just about any Linux distro.
Look at libconfig, it may be good replace for xml.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I've read the source code of a few popular open source projects like apache, nginx...
All of them are written in C, is there one written in C++?
It should be run-able program, not framework...
KDE
and up, to 30 characters and beyond.
Mozilla Firefox is written (mainly) in C++.
You may want to check out this list : http://www2.research.att.com/~bs/applications.html