Visual Studio C# - plugging in external DLL's
-
How do I tell Visual Studio C# 2005 about a DLL supplied with my USB hardware (motor control - MotorBee). I need to be able to call the functions in the DLL. Is it so trivial that its obvious? (not to me!) sysrev
See a previous message[^] Plus: chances are your USB dll is not a .NET dll but rather a native code dll. In that case you dont need references and using, but you need PInvoke, i.e. the techniques required to call native code. Lots of examples are available on CodeProject. Prerequisite is some documentation as to what functions are available in your USB dll. :)
Luc Pattyn
-
See a previous message[^] Plus: chances are your USB dll is not a .NET dll but rather a native code dll. In that case you dont need references and using, but you need PInvoke, i.e. the techniques required to call native code. Lots of examples are available on CodeProject. Prerequisite is some documentation as to what functions are available in your USB dll. :)
Luc Pattyn
-
Thanks for pointing me in the right direction - I will investigate. Is it only me or does anyone else find the Visual Studio help system difficult to get meaningfull answers from? Ted Edwards
Ted Edwards
Well I am satisfied with Help/Index... which leads to the reference info, although I often feel I would like each item to have an example; and I am not impressed much by Help/Search... , IMHO it needs a better search engine. A useful feature is Help/SyncContents: when in one of the reference pages, it leads you to the matching location in the Content pane, so you can easily browse neighbour information. :)
Luc Pattyn
-
Well I am satisfied with Help/Index... which leads to the reference info, although I often feel I would like each item to have an example; and I am not impressed much by Help/Search... , IMHO it needs a better search engine. A useful feature is Help/SyncContents: when in one of the reference pages, it leads you to the matching location in the Content pane, so you can easily browse neighbour information. :)
Luc Pattyn