I should know this... sigh...
First, the definition:
Now, the variables:
Then, the code:
Compiler generates an error telling me parameter 2 is not a pointer which is obviously is as pTask is defined as a PTASK which is defined as *PTASK
What am I missing here?
Thanks,
Phil
First, the definition:
Code:
typedef struct _task {
unsigned effective_date;
unsigned expiration_date;
FILETEST filetest;
BOOL bPrevjob;
char warning_time;
char snooze_time;
} TASK, *PTASK;
Now, the variables:
Code:
static FILETEST fTest; // local dialog working copy
static PTASK pTask; // a ptr to the master task
Then, the code:
Code:
pTask = (PTASK)(LPARAM)lParam;
memcpy(&fTest, pTask->filetest, sizeof(FILETEST));
Compiler generates an error telling me parameter 2 is not a pointer which is obviously is as pTask is defined as a PTASK which is defined as *PTASK
What am I missing here?
Thanks,
Phil