Hi Genius.........
i have struggled with some problems please help me
m creating a COM component Instance like this for supporting multiple version of COM components
Creating Instance Code:
Private _cmObjct As Object
Public Property CreatingInstances() As Object
Get
Dim _typePs As Type = Type.GetTypeFromProgID("SecureTronics.Application")
If Not _typePs Is Nothing Then
If _cmObjct Is Nothing Then _cmObjct = Activator.CreateInstance(Type.GetTypeFromProgID("SecureTronics.Application"))
End If
Return _cmObjct
End Get
Set(ByVal value As Object)
_cmObjct = value
End Set
End Property
it's really fine to working me with multiple versions.
but this component have some Multiple Interfaces...,Properties...,Methods...,Classes... and so on...
what my question is if i reference this dll file i can declare a variable with this component Interface
like
Declare with Referenced Dll Code:
Dim _ssdObj as SecureTronics.SSDP
at the same time how to declare this method without referenced dll
SSDP is an interface so how to declare this interface for my usage
is this Correct ...?
Error: Code:
Dim d as Object = Activator.CreateInstance(Type.GetTypeFromProgID("SecureTronics.SSDP"))