Calling functions written in C from VB .Net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, all
What is the best way to use functions written in C in VB .Net without compromsing much of the speed of computation

I am desiging a new user interface in VB .Net, but the original source code was written in C. I am not sure about how to integrate the new interface with the application in an efficient way

Thanks a lot for any help and hint
Alison
 
* =?Utf-8?B?QWxpc29u?= said:
What is the best way to use functions written in C in VB .Net without compromsing much of the speed of computation?

The only way is to use 'Declare' or the 'DllImportAttribute' if it's a
native DLL that exports functions.
I am desiging a new user interface in VB .Net, but the original source
code was written in C. I am not sure about how to integrate the new
interface with the application in an efficient way.

Is it a native C(++) DLL or a C++ (COM) class library? If it's a COM
component, just try to reference it. VS.NET will create the wrappers
that are required for using the DLL automatically.
 
Herfried

Thanks a lot for the reply

If you happen to know any, could you let me know where I can find some code samples for how to do this? I have not had much experience in doing this kind of integration myself.

Thanks again for the hel
Aliso

----- Herfried K. Wagner [MVP] wrote: ----

* =?Utf-8?B?QWxpc29u?= said:
What is the best way to use functions written in C in VB .Net without compromsing much of the speed of computation

The only way is to use 'Declare' or the 'DllImportAttribute' if it's
native DLL that exports functions
I am desiging a new user interface in VB .Net, but the original sourc
code was written in C. I am not sure about how to integrate the ne
interface with the application in an efficient way

Is it a native C(++) DLL or a C++ (COM) class library? If it's a CO
component, just try to reference it. VS.NET will create the wrapper
that are required for using the DLL automatically
 
Back
Top