G
GEES
Friends,
I would like to access a function in a dll file.
I have the call from a vb programme, it looks like
Declare Function bapiVersionInfo Lib "bapi" (ByVal versionString As String,
ByVal maxSize As long) As long
I c# I would do it as followes:
[DllImport("BAPI.DLL", EntryPoint = "bapiVersionInfo", CharSet =
CharSet.Ansi)]
public static extern int bapiVersionInfo([MarshalAs(UnmanagedType.LPStr)]
string versionString, int maxSize);
The problem is that the dll is a on bibary based C++ file. Fromout C# the
long is transferred to a int. But hou to handle the string????
Regards
Gerrit Esmeijer
I would like to access a function in a dll file.
I have the call from a vb programme, it looks like
Declare Function bapiVersionInfo Lib "bapi" (ByVal versionString As String,
ByVal maxSize As long) As long
I c# I would do it as followes:
[DllImport("BAPI.DLL", EntryPoint = "bapiVersionInfo", CharSet =
CharSet.Ansi)]
public static extern int bapiVersionInfo([MarshalAs(UnmanagedType.LPStr)]
string versionString, int maxSize);
The problem is that the dll is a on bibary based C++ file. Fromout C# the
long is transferred to a int. But hou to handle the string????
Regards
Gerrit Esmeijer