Thank you, Markus! > Simply change the type of the first argument to your callback function > to void* and the problem should go away. Of course you'll then have to > cast back to MyStruct* inside callback() to actually use the value.
It works. Just ((MyStruct *) data)->x looks strange. > The problem here is the type of your callback() function. By declaring > the first argument to it as MyStruct*, rather than void* as in the > function pointer type of the 3rd argument to sqlite3_exec(), you're > creating an incompatible function pointer type. It means that while passing the 3rd argument in sqlite3_exec(), the argument has been casted to void* ? BTW: It is the first time I use mail list, hope I'm replying correctly. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users