Solved

How to access Excel data from a vc++ app.?

Posted on 1997-07-22
3
186 Views
Last Modified: 2013-11-20
Hi experts,
I want to access data from an Excel spreadsheet to reside in my Visual C++ application. Does one have to take use of the database machinery or are there other possibilities, such as reading the data directly from an Excel file. If this  isn't possibility how do I "make" a "Excel database"?

OBS! My e-mail adr. is:t94jfr@tdb.student.uu.se
0
Comment
Question by:Jac
3 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1302728
There are several ways you can retrieve data from an Excel spreadsheet. You should take a look at the book Microsoft Excel Developer's Kit.
0
 
LVL 8

Accepted Solution

by:
gelbert earned 90 total points
ID: 1302729
You should impliment your application as OLE enabled to use COM mechanism to transfer data from one application to another. You should request IDataObject interface of Excel and using this interface you can recieve data by specifing a format, a medium, and, optionally, a target device for which the data should be rendered.
0
 

Author Comment

by:Jac
ID: 1302730
Thanks for yoyr answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now