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. Calling a function from Intel Library using C#

Calling a function from Intel Library using C#

Scheduled Pinned Locked Moved C#
questioncsharphelp
4 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.
  • E Offline
    E Offline
    E6AD
    wrote on last edited by
    #1

    Dear All, Does anyone know how can I call a function from an Intel Library? Please help... Best Regards, E.A.

    J 1 Reply Last reply
    0
    • E E6AD

      Dear All, Does anyone know how can I call a function from an Intel Library? Please help... Best Regards, E.A.

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      What language is the library written in, C? If C, you can use P/Invoke[^] to call the native library. If it's written as a C++ class instance function, then you may need to wrap the dll in a managed C++ function that instanciates the class and calls the member function. If the DLL uses COM (which I doubt, coming from Intel), you can add a reference to the dll itself inside Visual Studio (or manually use the .NET aximp tool), and a runtime callable wrapper will be generated automatically for you.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: Who is Jewish, the Trivia Game! Judah Himango

      E 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        What language is the library written in, C? If C, you can use P/Invoke[^] to call the native library. If it's written as a C++ class instance function, then you may need to wrap the dll in a managed C++ function that instanciates the class and calls the member function. If the DLL uses COM (which I doubt, coming from Intel), you can add a reference to the dll itself inside Visual Studio (or manually use the .NET aximp tool), and a runtime callable wrapper will be generated automatically for you.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: Who is Jewish, the Trivia Game! Judah Himango

        E Offline
        E Offline
        E6AD
        wrote on last edited by
        #3

        Thanks Judah, It's in C/C++... Actually I have a ".dll" file in the bin folder,a ".lib" of type C/C++ inline file & an "exports library file" in the lib folder... Shall I call the .dll or the .lib? What's the use of the "exports library file"? Sorry if my questions sound naive but I have never dealt with dlls before... Best Regards, E.A.

        J 1 Reply Last reply
        0
        • E E6AD

          Thanks Judah, It's in C/C++... Actually I have a ".dll" file in the bin folder,a ".lib" of type C/C++ inline file & an "exports library file" in the lib folder... Shall I call the .dll or the .lib? What's the use of the "exports library file"? Sorry if my questions sound naive but I have never dealt with dlls before... Best Regards, E.A.

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          Use the dll file. I don't know what the exports library file is for.

          Tech, life, family, faith: Give me a visit. I'm currently blogging about: Who is Jewish, the Trivia Game! Judah Himango

          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