PHPBuilder - Using .NET Assembly (Interoperability with COM) Page 4



RSS Twitter
Articles Php Functions

Using .NET Assembly (Interoperability with COM) - Page 4

by: Jayesh Jain
|
November 5, 2002

Adding the Strong Key to Project

We need to add the key we just created to our project, open Solution Explorer and double click AssemblyInfo.vb to open the code window and add the following
<Assembly: AssemblyKeyFile("c:\tgol\phpclass\mykey.snk")>
Please make sure you enter the full path where you have saved the key file.
Now Build the Application to create phpclass.dll (this file shall be created in the bin folder under the project folder) c:\tgol\phpclass\bin\phpclass.dll (on my computer)

Registering the Assembly

To register a .NET class with COM, you must run a command-line tool called the Assembly Registration Tool (regasm.exe). regasm.exe creates a Type Library (TBL File) and add information about the class to the system registry so COM clients can use the .NET class transparently
regasm c:\tgol\phpclass\bin\phpclass.dll /tlb:phpclass.tlb
This utility could be found in C:\WINNT\Microsoft.NET\Framework\v1.0.3705 (on my computer)
utility window

« Previous Page
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Jayesh Jain

Comment:



Comment:

(Maximum characters: 1200). You have characters left.