A
Arsen V.
Hi,
I have to use a functio that is inside of a DLL.
Using DllImport directive, I am able to point to the proper "public static
extern void".
However, the function takes a "char*" as one of its inputs. The DLL changes
the value of that char*. When used from inside VB, it works great. The
function declaration of ByVal buf As String works okay provided that I first
initialize the buf to be a string of 1000 spaces.
In C#, the DLL function is not changing the value of the buf string - it
remains empty 1000 spaces.
Thanks,
Arsen
I have to use a functio that is inside of a DLL.
Using DllImport directive, I am able to point to the proper "public static
extern void".
However, the function takes a "char*" as one of its inputs. The DLL changes
the value of that char*. When used from inside VB, it works great. The
function declaration of ByVal buf As String works okay provided that I first
initialize the buf to be a string of 1000 spaces.
In C#, the DLL function is not changing the value of the buf string - it
remains empty 1000 spaces.
Thanks,
Arsen