Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Visual Studio C# - plugging in external DLL's

Visual Studio C# - plugging in external DLL's

Scheduled Pinned Locked Moved C#
csharpquestionvisual-studiohardware
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sysrev
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • S sysrev

      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

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • L 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

        S Offline
        S Offline
        sysrev
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • S sysrev

          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

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • L 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

            S Offline
            S Offline
            sysrev
            wrote on last edited by
            #5

            It is mostly the search I have trouble with. The problem is really me in that I should learn C# and Visual Studio properly. I never seem to have time, always pressure to make something work "quick and dirty". Ted

            Ted Edwards

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups