PDA

View Full Version : Reading Excel Files with C++



Memo
01-06-2006, 01:05 PM
So, I'm trying to import a C++ file directly to a 2 dimensional container in C++. I've found some information on doing it using the Borland C++ Compiler here:

http://www.jcmiras.net/jcm/item/4/

However, I don't know what type Variant is. Obviously it's a type that can hold different types but This is not part of the STL that I am familiar with. I see it used with a lot of MVC++ and BCB code. Is there a specific library I need to use this?

I would use .csv but the files I have contain " and , at time so it makes it a major hassle to parse the fields.

InfiniteNothing
01-06-2006, 04:50 PM
Be a man and use fstream ;)

(I'm just guessing but I bet you need variant.h and probably the borland compiler. I've never done Borland though)

Are you trying to do anything that VB can't do? or is this some masochistic project?

Memo
01-10-2006, 12:23 AM
Not Masochistic, just trying to write a program. I have the Borland Compiler (it's free on their site). As far as Variant.H is concerned, this isn't a STL file so I'm not sure where to get it?