When you compile the provided sample source code, you must either move the exe to the bin directory or add the bin directory to the path (and restart the computer).
If you don't move the exe to the bin directory, the application does not know the location of dlls and OCXs and will not work.
If you add the bin directory to the path (and restart the computer) the compiled exe works from the original directory too.