bg5
2013-11-07 05:42:20
C++ doesn't have something like High(), so when you pass dynamic array, you need to pass it's length too.
So when I want to pass TPA to c++ plugin my function inside looks like:
But what if I want to pass 2d array like ATPA? I would need pass length of all sub-arrays too, like:
It's terrible, isn't it? What's the better way to do it?
So when I want to pass TPA to c++ plugin my function inside looks like:
void __declspec(dllexport) DoSomethingWithTPA (POINT TPA[],int HighOfTPA)But what if I want to pass 2d array like ATPA? I would need pass length of all sub-arrays too, like:
void __declspec(dllexport) DoSomethingWithATPA (POINT ATPA[][],int HighOfATPA, int HighsOfSubTPAs[])It's terrible, isn't it? What's the better way to do it?

