Hi,
I have been trying to use dot net object to create a combo box and enumerating it with present video devices. But I get instead a result which might be one of my installed Microphones. I would appreciate any suggestion which helps.
Regards,
Hi,
I have been trying to use dot net object to create a combo box and enumerating it with present video devices. But I get instead a result which might be one of my installed Microphones. I would appreciate any suggestion which helps.
Regards,
Hmm, I really don't know, it just returns 'Mic' for me too. The problem lies in your .net code though probably.
Hi Greyhill,
I have simulated this by Visual studio and get the same result.
The return is first letters of the video device.
By changing the code to
Dim DeviceName As String = Space(128)
Dim DeviceVersion As String = Space(128)
I get a correct return while the .net object does not compile and givs me the error description saying Space has not been decleard.
How can I declear Space if I whant to get the limit the size of the String to 128?
Any sugestion is highly appriciated.
Regards,
---------------
PS.
Thanks anyway. Found the problem.
Dim DeviceName As String = "".PadRight(128)
Dim DeviceVersion As String = "".PadRight(128)
this will fix the problem.