G
Guest
I would like to use a .Net packaged dll with unmanaged code, ie VB6 or
Access. The class I would like to use is System.Web.dll located in
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705. From my research my
understanding is the I need to create a "wrapper" by creating a new .Net
class library project and when compiling it click on the register for Com
property in the configuration.
My questions are #1 is this the correct approach? and #2 how do I ensure
that all the functionality of the assembly is retained in COM. For example,
COM cannot accept parameterized constructors....If the assembly has them, how
do I create the class library to code around this.... and most importantly
#3, how do I expose all the properties, methods, and events of the underlying
assembly.
My understanding on interfaces is limited, and I guess that this is the
approach. If someone could provide a basic example it would be greatly
appreciated.
Thanks
Access. The class I would like to use is System.Web.dll located in
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705. From my research my
understanding is the I need to create a "wrapper" by creating a new .Net
class library project and when compiling it click on the register for Com
property in the configuration.
My questions are #1 is this the correct approach? and #2 how do I ensure
that all the functionality of the assembly is retained in COM. For example,
COM cannot accept parameterized constructors....If the assembly has them, how
do I create the class library to code around this.... and most importantly
#3, how do I expose all the properties, methods, and events of the underlying
assembly.
My understanding on interfaces is limited, and I guess that this is the
approach. If someone could provide a basic example it would be greatly
appreciated.
Thanks