Ok, been frying my brain for a while now, so gonna ask for help.
Been asked to update this application from 32-bit to 64-bit. It uses something called Widgets and XtPointers. Now, i have no idea what they are and don't really care. The problem i have is when i try to compile the file i get the following errors:
"date_callbacks.c", line 235: Error: Cannot cast from void* to int.
"date_callbacks.c", line 357: Error: Cannot cast from void* to int.
The applicaiton casts the XtPointer into an int like so:
client_data is of type XtPointer... From what i've read about XtPointers is that it is a pointer to a block of memory that can hold pretty much the largest of values of certian types. And if you put a specific type in there you can just cast it out and back again as needed.
Is there any reason why I get this error? Any and all help would be appreciated.
-B
Been asked to update this application from 32-bit to 64-bit. It uses something called Widgets and XtPointers. Now, i have no idea what they are and don't really care. The problem i have is when i try to compile the file i get the following errors:
"date_callbacks.c", line 235: Error: Cannot cast from void* to int.
"date_callbacks.c", line 357: Error: Cannot cast from void* to int.
The applicaiton casts the XtPointer into an int like so:
Code:
int idx = (int) client_data;
client_data is of type XtPointer... From what i've read about XtPointers is that it is a pointer to a block of memory that can hold pretty much the largest of values of certian types. And if you put a specific type in there you can just cast it out and back again as needed.
Is there any reason why I get this error? Any and all help would be appreciated.
-B