User Tag List

Results 1 to 3 of 3

Thread: dotnet :Enumerating Devices

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Apr 2008
    Posts
    421
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dotnet :Enumerating Devices

    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,
    Attached files Attached files

  2. #2
    Forum Moderator Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dotnet :Enumerating Devices

    Hmm, I really don't know, it just returns 'Mic' for me too. The problem lies in your .net code though probably.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Apr 2008
    Posts
    421
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dotnet :Enumerating Devices

    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.

Similar Threads

  1. can dotNet do this?
    By nightofgrim in forum dotNet Scripting
    Replies: 2
    Last Post: 12th June 2009, 06:02 PM
  2. dotNet Information
    By Jeff in forum dotNet Scripting
    Replies: 0
    Last Post: 30th March 2008, 04:39 PM
  3. Using dotNet - Threading
    By Andrew in forum File Archive
    Replies: 0
    Last Post: 30th March 2008, 11:14 AM
  4. Enumerating through Objects in a Frame
    By TwiTerror in forum Extension Developers Lobby
    Replies: 4
    Last Post: 1st December 2007, 08:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •