FileSystemObject in VB doesn't work when the COM object is called from C#
COM
1
Posts
1
Posters
0
Views
1
Watching
-
I have constructed a COM object in VB6 that exposes various methods to handle custom files. This object works very well when I use it from a normal VB6 project, but when I use it through COM Interop in a C# application a strange error appear: Inside one of the functions in the COM dll I use the FileExists method on a FileSystemObject. When this method is called from the C# code FileExists returns false, even though the file exists. When the same method is called with the same filename as parameter in VB everything works. Anyone who have any idea of what I am doing wrong? Rickard