In case anyone wants to know how to use that function correctly, read http://archive.devx.com/dotnet/discu...cominterop.asp