Casting to global variable from LPVOID - C
- by Jamie Keeling
I am trying to cast data to a struct from a parameter passed into my method, I need the data to be passed to a global variable as it is needed elsewhere in my application.
I have tried the following but I get errors saying that diceResult is an undeclared identifier
Here is the code itself:
//Structure to hold dice data
typedef struct diceData
{…