C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-21-2007, 07:30 AM   #1
Registered User
 
Join Date: May 2006
Posts: 1,579
MSDN OLE DB Sample Provider entry point

Hello everyone,


I have built MSDN OLE DB Sample Provider and successfully built/debug it using Microsoft Excel as client. I have found that in DllGetClassObject (classfac.cpp), the class SampProv is initialized as the 1st coclass, then DataSource object will be created in QueryInterface.

http://msdn2.microsoft.com/en-us/library/ms715011.aspx

The entry point of a COM server (like this Sample OLE DB Provider) is creating a coclass through DllGetClassObject. My question is, how did Microsoft Excel find the entry point coclass of the OLE DB Provider is SampProv coclass?

I have this question because Excel is a client with no knowledge about any specific application defined CLSID, like SampProv, how could it be aware of this ID (i.e. Excel knows nothing about 3rd party application's specific name of entry point coclass)? In Windows registry, I can not find any related information indicating that SampProv should be the entry point coclass either.


thanks in advance,
George
George2 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How accurate is the following... emeyer C Programming 22 12-07-2005 12:07 PM
MSDN Searching Tips jverkoey A Brief History of Cprogramming.com 4 10-19-2004 04:51 AM
entry point of MFC Application Laeeqhamid Windows Programming 1 12-26-2002 09:06 AM
Proccess Termination (Entry Point Scrambling?) johnc C Programming 6 11-19-2002 06:22 PM
What a function entry point? KoolGuy18 C Programming 1 11-01-2002 11:29 PM


All times are GMT -6. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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