Ivan Gyurdiev <[EMAIL PROTECTED]> writes: > It's already marked const in the parameters of the set and get > functions, which means it can't be modified there (arg 3): > + void (*set_handler) (IDirect3DDevice9* device, const struct > state_test* test, const void* data_in); > + void (*get_handler) (IDirect3DDevice9* device, const struct > state_test* test, const void* data_out);
Which is precisely why the data pointers have to be const too. Since the tests don't modify anything, it must be possible to give them constant data. With your scheme you need to cast const off, which is ugly and will cause compiler warnings. -- Alexandre Julliard [EMAIL PROTECTED]