I have an ad in the ad too, I want to set the height, this is a pointer to double, but get mesasage errors:
" Error 1 Pointers and fixed size buffers may only be used in an unsafe context",
can someone show me the correct way to declare a pointer type in double?
Below is my declaration, and I set the height of the double pointer (double* height), but receives an error message.
private static extern bool GetElevation(double dLat, double dLon, double* height);
source
share