Yea, I saw that about the type casting too. I fooled with it for about five minutes and didn't have time to finish it. I was thinking of wrapping that thing in classes, but just hadn't got around to it. Actually, I have a PowerBASIC GUI implementation of that where you click a button and the program creates an output window and prints everything to that window instead of a console window; but its posted in the PowerBASIC forums. Its straight Sdk code though.
Never was sure why the creators of the low level ODBC Api had to use those odd redifinitions of char.