Hi Anton,
I mean, I did that on your first sample.
On your second sample, It ran out of the box for me in 64 bit SBO.
I did not change anything.
My Configuration was :
Windows 8 64 bit.
VS2012
SBO9 PL8 32bit + 64 bit installed.
SBO9 64bit is running for the testing.
On your other question,
There will be always one SAPbouiCOM + SAPbobsCOM on your COM reference list.
But you can always click browse and manually select the dll.
The 32 bit boui should be in the folder C:\Program Files (x86)\SAP\SAP Business One
The 64 bit should be in the folder C:\Program Files\SAP\SAP Business One
Regards
Edy