This is weird . Below, the method signature is marked as ByRef . I exported this class to dll file . It works fine in VB. In C# , it gives me two strange errors .They say : Argument '1': cannot convert from 'string' to 'ref string'
and
Argument '2': cannot convert from 'string' to 'ref string'
VB Code:
Public Shared Function FindFile(ByRef RootPath As String, ByRef FileName As String) As String
I used it like this :
Anyone knows why ?Code:MessageBox.Show(FindFileViaAPI.FileClass.FindFile("c:\\" ,"setup.exe"));





Reply With Quote