If running under IIS, you need to set "Enable 32-bit applications" -property on for the application pool serving the application. So basic rule is that always run with 32-bit when using QC API.
Might be worth reporting an ER for HP, if 64-bit operation is desired.