Solved

About C_Recordset::Open

Posted on 2003-11-26
2
212 Views
Last Modified: 2013-11-20
Hi,
   i use the ActiveX ADO to a Microsoft access. The Ado object provides a function SetRecordSource to set the SQL command string and the GetRecordset to have a handle to a C_Recordset for DB manipulation. The problem is that in order to make continiously SQL requests i find handy to use the C_Recordset::Open(). I have a difficulty to insert a VARIANT with the pDispatch of the ActiveConnection as a second argument for the Open function. First of all how do i get this VT_DISPATCH value . Any ideas or examples?

   Regards,
      Teo.

0
Comment
Question by:ttsenis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 50 total points
ID: 9825487
You might want to look at
www.codeproject.com/database/caaadoclass1.asp

The classes there are very usefull.  (I use a modified version for ADO onto MS Access).
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

751 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