I've got some fairly hardcore maths to do on some very large arrays and I was thinking it might be faster to do it using a C++ backend for the maths.

I can write the source code for the functions themselves but I have absolutley no Idea how to connect to them with VB.


basicly how do I go from something like this


Code:
int CalculateArray (long* TargetArray,int Param1, int Param2)
{

int retval = 0;

    //Lots of C++ Code

    return retval;

}
to something I can connect to like I connect to the API

thanks in advance