see this project:

http://www.basicguru.com/abc/rapidq/

Rapid-Q is a cross platform BASIC programming language capable of generating GUI and CONSOLE applications (including CGI applications). It directly supports MySQL, DirectX, a bit of Direct3D, Sockets, a bit of COM, component/object programming, and many other nice features. Rapid-Q is currently available for Windows 95/98/NT/2000, Linux/i386, Solaris/Sparc, and HP-UX. Although Rapid-Q is still in Beta (for over a year already), it is fully functional and FREE!