is there any way to link c++ to microsoft excell? i need to use a table from excell as information in microsoft visual c++. email is [email protected]
is there any way to link c++ to microsoft excell? i need to use a table from excell as information in microsoft visual c++. email is [email protected]
Yes you can. Excel is an automation object so you can get the IUnknown (or any other published interface) from it using CoCreateInstance then use the appropriate methods. Their are lots of VB examples and some c++ out on MSDN.
Or you can talk to it via ODBC. You'll have to rummage around MSDN http://msdn.microsoft.com/library/ to find which method works best for you.
Last edited by Dang; 11-02-2001 at 10:12 AM.
I've found myself in a very similar situation: I need to input/output data from/to an excel file. Thanks in advance.
Use a type of Excel file called a .csv
That is one where the cells are seperated by commas.
Can be written as text or by Excel.
Do a search on the Windows programming board for more info.
or look here
http://www.cprogramming.com/cboard/s...ighlight=excel
Last edited by novacain; 04-03-2002 at 10:57 PM.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Thanks! I'll give that a try.