techmanbd
Junior Contributor
I have a 3rd party bus communications box and there is a dll that comes with it to speak to this box through the USB port. At one time I could have 3 to 5 of these boxes connected. I would like to just use one form to talk to all these boxes. Here is what happens. I will use 2 boxes as an example. If I run the EXE file, it will talk to 1 of the boxes. If I want to talk to the second box, I have to run the exe file a second time. Now I have been trying to do this with one form so I don't have mutiple executables running at the same time and not having success.
Can someone lead me into the right direction? What to look in to?
I will still search as well. I have a feeling it has to do with the DLL and assigining a new instance to it for the 2nd box. Also I can't reference this dll through the framework. I have to use the system.runtime.interopservices and the <Dllimport("whatever")> code.
Hope this makes sense
Thanks,
Can someone lead me into the right direction? What to look in to?
I will still search as well. I have a feeling it has to do with the DLL and assigining a new instance to it for the 2nd box. Also I can't reference this dll through the framework. I have to use the system.runtime.interopservices and the <Dllimport("whatever")> code.
Hope this makes sense
Thanks,