473,749 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

entry point of OLE DB Provider

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
2 1838
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.co m

"George" <Ge****@discuss ions.microsoft. comwrote in message
news:8B******** *************** ***********@mic rosoft.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
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 DllGetClassObje ct, 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.co m

"George" <Ge****@discuss ions.microsoft. comwrote in message
news:8B******** *************** ***********@mic rosoft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
14880
by: Richard Bailey | last post by:
Greetings. Today I was testing the sql backup/restore functions on our primary server. I was able to backup my database without any problems but when I tried to restore it, I received an error "Could not find the index entry for RID '3610200101a03cc4b49d8bbc84bac50cbe042cecf76' in index page (1:40), index ID 0, database 'walkthrough'." Thinking that data had been corrupted somehow I tried another database and received a similar error...
0
7792
by: Scott Chang | last post by:
Hi all, I have Microsoft Visual C++ .NET (2002) program that is installed on my Windows XP Professional Operating System PC. I started my project (named HelloMCPP)in the Managed C++ Application and added a DLL in the .h file to my project for printing "Hello from Managed C++!" out in my console. I did "Build" the program 'HelloMCPP' and I got 'Fatal Error LNK1561: entry point must be defined HelloMCPP'. I do not know how to define the...
1
1623
by: I am Sam | last post by:
Hi Everyone, I am new to Server control development and I am wondering how do I define the entry point for a server control? In a regular page you define Page_Load as an entry point and in a windows application using C# you define the entry point as void Main(){}. But in a Server control I think it is seperate then writing the entry point as static void Main(){}
5
3152
by: Mike in Santa Rosa | last post by:
I'm trying to get a simple c# app built that can launch/manipulate an excel workbook, sheet. I've chased down several examples and can't any of them to work. So I must be doing somethnig obviouslt wrong. Most examples to get things started include something: using Microsoft.Office.Interop.Excel; or using Excel; or using Excel = Microsoft.Office.Interop.Excel;
2
6821
by: bboule | last post by:
Hi I have developped a dll that I want to use in another program ! here is my code : using System; using System.Collections.Generic; using System.Text; namespace NameSpace
10
4171
by: Lung.S.wu | last post by:
Hi all, It is a history question. Recently, I read the book "C A reference manual, third edition". In this book, it list all C language keyword, and one is "entry". I know it is omitted from ANSCI C, but I hope I can find any data about it. Doea any one know how to use it, before?
0
1602
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
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
1
1802
by: admin.offshoredataentry | last post by:
Data Entry Outsourcing provides time bound, cost effective and qualitative Data Entry also provides numeric data entry, textual data entry, image data entry, data format, data conversion and also online data entry, offline data entry with 99.98% accuracy and time bound. Data Entry Services also provides form data entry, data capture, HTML/ SGML coding, image scanning, file conversion with low cost,high quality, 99.98% accuracy and...
1
2188
by: Data Entry Outsourcing | last post by:
Data Entry plays vital role in every business area. Data Entry is one such aspects of any business that needs to be handled properly for expanding your business. Data Entry is one of the leading elements for running a business successfully. Now Days it's a trend to outsource Data Entry Work to reliable service provider who provides excellent output out of their work. Many Companies or Organization prefer to outsource data entry work to...
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.