Apologies in advance for my limited experience with c++ (I'm learning).
I'm writing a dll that needs to return an array of ints to the calling application. I have sample code (provided by the application's docs) for doing this:
When I open the example solution in Visual Studio it compiles fine. However when I paste this code into a file in my solution, it fails to compile, stating that:
C2065 'ReallocFunctionPtr': undeclared identifier
Which is referring to this line 21 in the Reallocate() function:
Data = (DataType*)(*ReallocFunctionPtr)( Data, ArrayMax * sizeof(DataType), 8);
There is no custom header file in the example solution. So I can't understand why it is compiling fine in the example solution and not in my own solution.