read/write the excel file in c++ [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have to read/write the excel file in C++. I searched in net I found may library file which provides the functionality to parse the Excel sheet but those library are not opensource.
Can any one let me know the easiest way to read/write excel file in c++.
If you suggest and predefine library then it should be free of cost.

Several routes:
If you're parsing character separated value files, then you can use simple iostreaming.
Develop an XLL. Download the Excel SDK and go from there. The framework example in that SDK is pretty good.
Use the COM interface. For this you'll need something like Microsoft's ATL. Low level COM, though possible, is difficult.
Use Apache POI and a JNI / JNA layer to it.
(4) has the advantage that excel doesn't need to be installed so can run well server-side, but it will require Java. (3) is a learning curve if you haven't used COM in C++ before. Budget 6 months of mental fog.
In the absence of any more information, I'd plump for (2). The XLL interface is extremely good.

Related

Is it possible to add VBA programming environment to my C++ application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have an application that is written in C++ and would like to offer the user the possibility to have a VBA-programming interface (not dissimilar from the one in Excel). Is there the possibility to do that? Does a set of libraries exists for this? Is it very difficult to do?
Yes it is possible, but do regard it as being extremely difficult. As a starter for ten, your application will need a comprehensive Component Object Model interface. At that point, you would be able to use VBScript, so it might be wise to stop there.
For fully-fledged embedded VBA, you'll need to negotiate a licence with Microsoft.
Some applications (e.g. Reuters Kobra) licence the VBA interface in a similar way.

key value flat file database simple in C or C++ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
For a project i am looking for a simple database which is written in C (or C++) for a cross platform aplication.
After looking into HamsterDB (which looked promissing) i had found out, that it is dependen on boost on windows.
So the alternative should not relies on STL or other libraries as the Application will be run on different Eco Systems (like arduino,symbian,android,windows) and compiled on diferent IDEs.
It will store up ton 20mil keys(but usualy below 50k keys), IO will be low.
Therefor it should be as clean C (or C++) as possible.
Can somebody show me something which will fullfill this, ready made?
LevelDB is what you're looking for. It's written in C++ but C functions are available as well.
LevelDB is a fast key-value storage library written at Google that provides
an ordered mapping from string keys to string values.
Looks like Berkeley DB is an option to you. Not sure about the embedded part (especially for arduino).
You can find a complete tutorial at standford's classes.

Cross platform way to create file dialog in C++ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am writing an application in which I need to be able to browse for an existing file and to create a new one. I need to create user interface for that. Is there any good cross-platform free library to help me do that?
If you're not already using a cross-platform UI library, then it doesn't make a lot of sense to introduce a dependency upon a huge library just to display a file dialog.
Since recommendations for a cross-platform UI library have already been hashed out repeatedly in other questions (use the search feature to find them if you're interested) and are probably off-topic anyway,
I'm going to take the liberty of assuming that such is not your question.
Therefore, the answer is that no, there is no reliable, cross-platform way of creating a file dialog. Each platform provides a different interface/API for this, so you'll need to write code to detect the current platform and then display the dialog as instructed by each platform's documentation.
You can do this either at run-time (if you want to have a single binary), or at compile-time by using conditional compilation (#if statements).
This is basically all that any UI library would be doing, and for such a simple requirement (a single feature) it makes sense to me at least to just do that work yourself.
You can give wxWidgets a try, a GUI library in C++, free, open-source,... and work with the native graphics libraries.

Open-source projects using C++ and XML data binding [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for open-source projects that make use of two things: (1) C++ and (2) XML data binding. For those who don't know, data binding tools make use of XML schema and code generators such as Codesynthesis xsd, Liquid Technologies. I know CIAO/DAnCE project, an implementation of CORBA Component Model that uses XML Schema Compiler (XSC) but I'm hoping to find more.
I have tried http://www.codesynthesis.com/products/xsd/ a few months back and I thought the resulting C++ interface was pretty clean. (It's style is similar to STL / boost APIs)
Other than that the gSOAP toolkit appears to have something too. ( http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc1.4 )
Some open source projects that use Codesynthesis XSD are listed on this wiki page:
http://wiki.codesynthesis.com/Open_source_projects_that_use_XSD

Writing a Firefox Extension that uses XPCOM components? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to write a Firefox extension that writes Firefox's history into the Windows system history, which ought to be useful for folks at work who use IE and Firefox to get work done.
Adding pages to IE history appears simple enough (IUrlHistoryStg::AddUrl ought to do it). However, my experience with Firefox extensions is limited to small chrome hacks packaged together in an XPI.
From my initial reading, it appears that I have to create a XPCOM component that will insert URLs into history. I'm not sure this can be done using Javascript, and I don't have much experience in writing extensions that use XPCOM components.
Could anyone familiar with Firefox extension development please point to any tutorials about writing extensions that use XPCOM components, especially those written using C++? Or are there any open-source extensions that use components I could look at to learn more about this?