you say you are using kix4.0, but your code is using kix3.x ole calls.

Bryce