then use this prior to calling bindValue:
Qt Code:
memset(fpc, 0, sizeof(char)*525);To copy to clipboard, switch view to plain text mode
This way you make sure you will always have a null at the end of your string, in case the stored procedure returns a smaller number of characters.
You can even increase the size of the array to 1024 or 2048, but make sure to create it on the heap, not on the stack.
Regards
Bookmarks