Solved

Using ADO in Visual C++ 7

Posted on 2003-12-03
4
395 Views
Last Modified: 2013-11-20
Hi,

I'm trying to write an application in Visual C++ 7 (Visual Studio .Net) that connects to a access database using ADO.  I'm fairly new to C++/MFC and so i'm following instructions from a book; the problem is that the book is written to use Visual C++ 6 and the Visual C++ 7 GUI has changed such that the instructions don't work.

So my question is how do I insert an ADO Data Grid Control into my application?  My book says to do this:

* Invoke the Components and Controls Galery and select registered ActiveX Controls
* Select Microsoft ADO Data Control Version 6.0 (OLEDB), Click Insert and Confirm.
* The controls are then supposed to be located on the resource editor controls toolbar under MS Ado Data Control.

I cant even find the Components and Controls Gallery to register the ADO components.

I'm sure the answer is right under my nose but any help would be much appreciated

Kind Regards and Thanks in advance
0
Comment
Question by:csuog
  • 3
4 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9865865
Right-click on dialog template and select "Add ActiveX control".
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9865910
After this right-click dialog class in the Class View, select "Add - Add Variable". In the dialog check "Control Variable". Select control ID (ID of ADO control inserted to the dialog). Fill variable name and press Finish. Wizard creates wrapper class for this control and adds variable of this class to the dialog.
0
 

Author Comment

by:csuog
ID: 9868143
Right, I found this list by trying to customise the dialog editor toolbox.  Now my book, says I should insert the item entitled Microsoft ADO Data Control Version 6.0 (OLEDB), however I can't see this or any other item relating to ADO or a data grid (apart from a VideoSoft FlexArray Control, which I'm pretty sure i'm not looking for). Am I being stupid and looking for the wrong control or do I have to register the ADO Data Controls?

Thanks(again) in advance.
 
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
ID: 9868269
This control comes with some developer toolkit. Maybe you can find this information in your book. According to this article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odecore/html/deconinsertingcontrols.asp
it is part of Office 2000 Developer Tools (as most if VC++ developers I don't know what is this). Try to ask in VB area where this control may be found.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 …

803 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