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



RSS Twitter
Articles Php Functions

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

by: Jayesh Jain
|
November 5, 2002

Execute the Code

Open your favorite browser and type http://localhost/phpnet.php to see the PHP file in action
PHP file in Action
Using COM Interop in VB6
You could use the same steps as shown above to create a COM wrapper around the .NET assembly and use it in VB6, here is the code for your reference.
 Set MyObj = CreateObject("phpclass.HealthRecord.patient")
 MyObj.lmp = "05/08/2002"
 MsgBox "LMP : " & MyObj.lmp
 MsgBox "EDD : " & MyObj.edd
Un-registering the Type Library
To un-register the type library, run regasm with /unregister switch and the assembly path.
regasm /unregister c:/tgol/phpclass/bin/phpclass.dll
utility window example

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