#native_company# #native_desc#
#native_cta#

Using .NET Assembly (Interoperability with COM) Page 7

By Jayesh Jain
on 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

1
|
2
|
3
|
4
|
5
|
6
|
7
|
8