dlang how to use sqlite3

John Colvin john.loughran.colvin at gmail.com
Tue Oct 1 02:17:11 PDT 2013


On Tuesday, 1 October 2013 at 09:11:32 UTC, kaspars wrote:
>     // Version 1
>     sqlite3_exec(db,"SELECT * FROM
> triphones",myCallback,null,null);

should be

sqlite3_exec(db,"SELECT * FROM triphones",&myCallback,null,null);

otherwise you're actually doing a parenthesis-less call to 
myCallback instead of passing it's address, hence the error 
message.


More information about the Digitalmars-d mailing list