Hello:

  I readed some delphi user can not use the com dll so I coded this one, also for me to lern.

  It is included a non bugging me messages version of the dll and also the testing exe and vb source.

  I have not explained yet the functions, that are like this declared for Vbasic 6

  Public Declare Function OpenDmx Lib "OpenDmx.dll" () As Long                                                       'return 0 if fails, 1 if succes
  Public Declare Function CloseDmx Lib "OpenDmx.dll" () As Long                                                       'return 0 if fails, 1 if succes
  Public Declare Function SetStartCode Lib "OpenDmx.dll" (ByVal lngStartCode As Long) As Long       'returns the same value recieved
  Public Declare Function SetDmxRate Lib "OpenDmx.dll" (ByVal lngDmxRate As Long) As Long                 'returns the same value recieved
  Public Declare Function UpdateDmx Lib "OpenDmx.dll" (ByRef lngPointerToDmxArray As Any) As Long    'return 0 if fails, 1 if succes

  Note the last one, that is the only thing to explain deeply.
  As Vbasic has no pointers stuff, I must to use this trick. But the DLL really is waiting for a value that contains the
  pointer of the array.

  This dll has  self detection of disconnection that will appears if you disconnect the cable when the dll is sending.
  The dll will guide you to reconnect again.

  Also you can use the update value only once, and the dll will use this pointer to send the data of the array.
  I mean that other dll need to update the dmx values over and over again (nomaly they call this function inside a timer or a thread)
  my dll sends the data from the array that is inside your code.. you only need to call UpdateDmx function 1 time.

  If you decided send the content of another Array simply call the UpdateDmx function again.

  I hope you undestand me.
  StartCode default is 0, you dont needd to call this is you dont need to change its value
  DmxRate is 30 mS, idem.

  so the normal procedure is

  OpenDmx
  UpdateDmx (pointer to DmxArray())
  CloseDmx
