Re: [sqlite] Sqlite callback in a class. Class-member error.
Unfortunately I'm not able to grasp the new functions, I've read through http://www.sqlite.org/capi3.html but I can't picture how I would set up these functions. Is there an updated sample or tutorial? Or could someone explain the basic routine for extracting the columnnames/amount of columns/amount of rows and all the data in an array? _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Re: [sqlite] Sqlite callback in a class. Class-member error.
Thank you, I will look in to it! _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
[sqlite] Sqlite callback in a class. Class-member error.
I was using global variables to transfer data from the callback to my class, but now I need this function in two classes. Thus the global variables collide causing a multiple defintion, therefore I'm trying to wrap the callback into my class. int MyFrame::callback(void *NotUsed, int argc, char **argv, char **azColName){ int k; rows=argc; for(k=0;k
[sqlite] ALTER TABLE substitute?
What I want to do is drop and add columns, couldn't find something appropriate with sqlite, atleast it doesn't seem as ALTER TABLE works, how can I do it instead? Maybe it isn't possible? _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[sqlite] Appropriate class for database
I am creating a program for basketball coaches. I am having big problems choicing a suitable class for my database. It should be one for players i.e player shirt-nr age rating and so on in columns then beneath the user should be able to add in a row and by pressing the columns that columns get sorted and the rows are still connected to eachother. I have tried out grid and listbox, listbox didn't have columns and I don't find grid as appropriate as I'd want it to be. Any suggestions!? I have looked a little at listctrl but it doesn't seem to be what I'm looking for... _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[sqlite] Appropriate class for database
I am creating a program for basketball coaches. I am having big problems choicing a suitable class for my database. It should be one for players i.e player shirt-nr age rating and so on in columns then beneath the user should be able to add in a row and by pressing the columns that columns get sorted and the rows are still connected to eachother. I have tried out grid and listbox, listbox didn't have columns and I don't find grid as appropriate as I'd want it to be. Any suggestions!? I have looked a little at listctrl but it doesn't seem to be what I'm looking for... _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Re: [sqlite] Extracting values from callback
Thanks a lot guys, it works great now! _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/
[sqlite] Extracting values from callback
I've been trying at this for a good few hours now, I'm using sqlite3 and the quick start code at the website. By using a global "char *buffer[5][220];" and then doing buffer[i][counter]=argv[i]; I thought I would be able to extract the rows in my table but it does not work. When the program has exited the callback buffer[i][0] equals buffer[i][1] and so on. For some reason all of them will have the values of the last callback execution. int counter=0; char *buffer[5][220]; int rows; static int callback(void *NotUsed, int argc, char **argv, char **azColName){ int k; rows=argc; for(k=0;k