I'm having a problem getting a pointer to return a valid value when called as a parameter to a function. Here goes.
p = APIFunctionThatReturnsPointerToADatabase();
MyStruct *p = 0;
The value of p is valid inside the function but not after the function call. Why? Aren't I calling by reference?