473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Jul 21 '07 #1
0 1582

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Catherine Jones | last post by:
Hello, The security sinks example provided as part of the below mentioned article in MSDN does not work in .NET 1.1. Can you please provide the configuration file for making this work with 1.1...
14
by: Roland Hall | last post by:
I have two(2) issues. I'm experiencing a little difficulty and having to resort to a work around. I already found one bug, although stated the bug was only in ODBC, which I'm not using. It...
6
by: Duncan Winn | last post by:
I have written an Ole Db provider. It seems to be registered in the Operating system to a degree, but not fully, i.e. I can access it from a client that I have written. But it does not appear in...
19
by: Randy | last post by:
Hi, I need to create a simple dll which will be used by MS Access and .ASP apps. What type of dll would be best and can anybody point me to a complete example which I can compile and run with...
10
by: Alan Silver | last post by:
Hello, I discovered the MSDN design templates yesterday and have been looking at them. I have a problem with the Personal template. I don't have SQL Server Express loaded, as I already have...
2
by: John | last post by:
Hi I am trying to setup a customised membership provider and I am getting the following error when trying to run the app; The entry 'AspNetSqlMembershipProvider' has already been added. The...
1
by: gerry | last post by:
I wrote up a couple of simple SiteMap providers based on the MSDN documentation and examples, in particular the AccessSiteMapProvider example found at...
11
by: Weston Weems | last post by:
I've got the need to have user information for logged in user in a readily avaliable page context (a lot like how Profile is) except not suck. Before we jump to any conclusions, from what I...
2
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am implementing a simple C# OLE DB Provider (C# COM Server). For C# (managed code), I am wondering what is the entry point (which coclass and which method), client will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.