"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell

Hmm i actually got it to work. I can now connect through a VB6 project

But i still cant send a query, it still crashes when i try to send a query, but it also crashes within a C++ project, so i think its a problem with my function. Also, it does not seem to return the "returns" in my VB project. And it also shows an error after i close the VB program after i use the connect function.