Did you link in the libraries? big problem I know most people have when compiling dx code is that they don't link in the dx libraries. in vc6 got to Project->Settings then under link, add the correct libraries to "Object/Library Modules" disclaimer: haven't tried compiling the code, since ...