I need to load a .dll file from another company code in order for me to call its function. But how do I load it when I dont know how to set its variable? The dll file is "Interop.OphirLMMeasurementLib.dll" and this is the cut out from data sheet.
"The OphirLMMeasurement COM object follows the standard COM practice of returning an HRESULT from its methods. The HRESULT can be passed to GetErrorFromCode to get a descriptive string, or the standard COM GetErrorInfo function can be called (see documentation for your environment). Some client environments (such as VB6 and all .NET languages) do not return this HRESULT from the method call; instead they throw an exception when a method returns a failure HRESULT. This exception will normally contain within it the error number and the descriptive string.
---------- 3.3 Methods and Events 3.3.1 Device Communications
Close
CloseAll
GetKnownWirelessDevices
OpenUSBDevice
OpenWirelessDevice
ResetAllDevices
ResetDevice
ScanUSB
ScanWireless
So how do I call the function of ScanUSB from this .dll file?