By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,625 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,625 IT Pros & Developers. It's quick & easy.

entry point of OLE DB Provider

P: n/a
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 invoke at first?

It is clear if I write my own client, but I am confused about other clients
which I do not have source codes, for example, if I use Microsoft Excel (as a
client) to invoke my C# OLE DB Provider, which is the entry point? Any
reference materials or debug tools?
thanks in advance,
George
Jul 19 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
George,

Well, if the providers are publically accessible classes, the answer is
any of the methods/properties on your interface or classes can be entry
points. There is no restriction on when what will be called. Whether or
not it is valid is another issue, but theoretically, any of them could be
called.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"George" <Ge****@discussions.microsoft.comwrote in message
news:8B**********************************@microsof t.com...
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 invoke at first?

It is clear if I write my own client, but I am confused about other
clients
which I do not have source codes, for example, if I use Microsoft Excel
(as a
client) to invoke my C# OLE DB Provider, which is the entry point? Any
reference materials or debug tools?
thanks in advance,
George

Jul 19 '07 #2

P: n/a
Thanks Nicholas!
Do you know any way to debug? For example, I want to know which
coclass/interface the client is going to access (and possibly I forget to
implement) for C# managed code?

For C++ COM, I always debug through DllGetClassObject, but in C#, since it
is managed code, there is no single entry point -- entry point is delegated
to mscoree.dll, so I do not know a way to debug. Any good ideas?
regards,
George

"Nicholas Paldino [.NET/C# MVP]" wrote:
George,

Well, if the providers are publically accessible classes, the answer is
any of the methods/properties on your interface or classes can be entry
points. There is no restriction on when what will be called. Whether or
not it is valid is another issue, but theoretically, any of them could be
called.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"George" <Ge****@discussions.microsoft.comwrote in message
news:8B**********************************@microsof t.com...
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 invoke at first?

It is clear if I write my own client, but I am confused about other
clients
which I do not have source codes, for example, if I use Microsoft Excel
(as a
client) to invoke my C# OLE DB Provider, which is the entry point? Any
reference materials or debug tools?
thanks in advance,
George


Jul 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.