entry point of OLE DB Provider

G

Guest

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
G

Guest

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 said:
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]
- (e-mail address removed)

George said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top