I have a declaration and in the declaration, I want to set a height is a pointer to a double but get the error mesasage:
Error 1 Pointers and fixed size buffers may only be used in an unsafe context,
Can someone show me the right way to declare the type of pointer in a double ?
Below is mine declaration and I set the height to a pointer of double (double* height)
but gets an error message.
private static extern bool GetElevation(double dLat, double dLon, double* height);