Calling a function from Intel Library using C#
-
Dear All, Does anyone know how can I call a function from an Intel Library? Please help... Best Regards, E.A.
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
-
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
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.
-
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.
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