C#开发COM组件 翻译国外文章

源文章:http://www.codeproject.com/Articles/7859/Building-COM-Objects-in-C

如果大家需要的话 我准备翻译为中文,看大家的反馈情况。如果不需要就仅供我参考啦。

The topics covered in this article are:

  • Creating a simple COM object in C# (use the COM Interop property).
  • Accessing the COM from a VC++ client. (I have tested it with VC++6.0 and VC++ .NET). Client uses the TypeLibrary (.TLB file).

For the sake of simplicity and ease of use for the developers, testing this code, I have used the Northwind database built into with the default installation of SQL Server database.

  • Modify the name of the SQL Server in the COM object to connect to your SQL Server.
  • Also, I have created a default user ID and password of scott / tiger to connect to the database. Either create this, or use an existing ID / password.
posted @ 2013-10-10 16:56  五月℃夏到了  阅读(266)  评论(0编辑  收藏  举报