vincentw56
IS-IT--Management
I am trying to call a dll but the function call does not make since to me. Here is my code:
The function syntax is this:
long VanOpenConnection(long version, struct VanConnRecord)
My problem is with the struct part. What do I put in my code for the strut part. I tried changing it to string, but it does not work. Thanks.
Vincent Wright
Web Developer
NSI Software, Inc.
Code:
struct VanConnRecord
{
public string crName;
public string crPassword;
public string crHost;
public string crPort;
}
[DllImport("vanapi32.dll")]
public static extern long VanOpenConnection(long version, struct VanConnRecord);
The function syntax is this:
long VanOpenConnection(long version, struct VanConnRecord)
My problem is with the struct part. What do I put in my code for the strut part. I tried changing it to string, but it does not work. Thanks.
Vincent Wright
Web Developer
NSI Software, Inc.