C chip Feb 25, 2004 #1 I know it can be done in a dll, but is it possible to call a c++ / c function directly from c-sharp. -chip
I know it can be done in a dll, but is it possible to call a c++ / c function directly from c-sharp. -chip
W Willy Denoyette [MVP] Feb 25, 2004 #2 No, You have to use the PInvoke services in order to call exported C style functions from C#. please check the PInvoke services in MSDN. Willy.
No, You have to use the PInvoke services in order to call exported C style functions from C#. please check the PInvoke services in MSDN. Willy.
C chip Feb 25, 2004 #3 Willy Denoyette said: No, You have to use the PInvoke services in order to call exported C style functions from C#. please check the PInvoke services in MSDN. Click to expand... Thank you, So, that means that it is not possible to add a c++ source to a c# project directly and link them together, I have to make it in a dll ? -chip
Willy Denoyette said: No, You have to use the PInvoke services in order to call exported C style functions from C#. please check the PInvoke services in MSDN. Click to expand... Thank you, So, that means that it is not possible to add a c++ source to a c# project directly and link them together, I have to make it in a dll ? -chip
W Willy Denoyette [MVP] Feb 25, 2004 #4 chip said: Thank you, So, that means that it is not possible to add a c++ source to a c# project directly and link them together, I have to make it in a dll ? Click to expand... Right. Willy.
chip said: Thank you, So, that means that it is not possible to add a c++ source to a c# project directly and link them together, I have to make it in a dll ? Click to expand... Right. Willy.