>>Perhaps you must explicitly declare tcDirectory ByVal.
>
>ByVal is what I have.
>
>Even when trying:
>
>
> Directory.CreateDirectory("c:\test")
>
>
>I have the same.
Yeah, I took another look at that error message. I think that the function declaration is implicitly overloading another Directory function in the same namespace. The other Directory function accepts a single string paramter, and therefore the CLR does not know which function to call. Usually the error message associated with overloading a function with the same argument list is more descriptive. This error message may have something to do with the Shared declaration.