It is not simple.
You can P/Invoke native code from managed call (i.e. call C code from C#) but you will have to handle many complex data type conversions.
I recommend you to search for managed code or c# code.
Many thanks for the, as usual, quick reply Erel.
I now understand what you mean.
It would be like adding assembler language into a C program, which I have done in the past.
I'll google as you suggest and see if I can run c code in a .vbnet program.
I don't have much luck with c#
It's worth perservering. There's pretty much a one to one conversion of most stuff from C# to VB and it's all .NET underneath. Anyway doesn't SharpDevelop have a conversion capability - dzt stated that it had in post #8 of this thread.