How to Declare a external COM component Interface....?
Hi Genius.........:wave:
i have struggled with some problems please help me :o
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"))
Re: How to Declare a external COM component Interface....?
if you figure out the answer to your question tell me too because im wanting to use this with dsf(device simulation framework).
Edit:
I will trade time with you if you be willing to help me plus you might see how multiple com interfaces are done especially if you look at the c++ files for dsf because it has a multiple interface com component according to help files.
Heres my project which uses com components:
http://kinectmultipoint.codeplex.com
Can i see what com components an vbscript uses when its running? my vbscript file emulates a mouse and right now i want to convert that code to vb.net and then i will convert it in vb.net to support multiple mouse devices. I did find dsfdevices which has an items property which might help.
My goal is to create a mouse device and move and left click for each person recognized by the kinect and if possible have efficient code while doing it but just getting it working is my goal. The kinect part i will ask about on the kinect forums on microsofts website but i wish to do the com portion in a different forum then kinect.