C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-06-2006, 04:55 PM   #1
Registered User
 
Join Date: Aug 2002
Location: Hermosa Beach, CA
Posts: 446
Writing OLEDB Provider

I'm trying to figure out the smallest possible test case for writing an OLEDB provider that can interface with Crystal Reports (via the VB Crystal Reports template, for instance).

My starting point is the default implementation that the OLEDB Provider wizard gets. And I basically understand which part needs to be modified to get it to do something interesting, other than the default implementation of do a directory listing. I tested this default implementation against a VBS script that uses ADO/Recordsets. Works OK.

Now, when I use Visual Studio to create a VB project, and I add a Crystal Reports control. It creates the connection object, but it wants me to specify a table (in the VB GUI), and it can't find any tables--so it's basically stuck there. My assumtion is that I need to implement some optional OLEDB interface, but I don't know which one. If someone knows what Crystal Reports requires that would be awesome. I'm not holding by breath. So:

I read on some MS newsgroup, someone said something along the lines of "You need to find out which queryinterface calls Crystal Reports is making against your component, so you can implement those interfaces". This was said to someone who had a similar problem as what I am seeing. Anyway this advice makes sense to me, but I don't know how to accomplish the task. I would for instance hack the provider to log QI calls into a log file, but for some reason I think there's an easier, maybe a standard way to do this. ?

And finally, maybe someone just knows of a good reference on the web, or even a book that I can buy, related to implementing OLEDB Providers, which might help out.

Thanks for any info.
__________________
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.
IfYouSaySo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
writing and appending to file lots of times takes to long how to improve ? umen242 C++ Programming 2 05-20-2008 08:57 AM
Very slow file writing of 'fwrite' function in C scho C Programming 6 08-03-2006 02:16 PM
OLEDB Provider Properties IfYouSaySo Windows Programming 0 04-26-2006 12:26 AM
Folding@Home Cboard team? jverkoey General Discussions 398 10-11-2005 08:44 AM
help! fifo read problem judoman C Programming 1 08-16-2004 09:19 AM


All times are GMT -6. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22