Hej,
I want to use a DLL (1394camera.dll) (written in c++, I presume) in my c# project. The Dll contains functions in various classes, e.g. 'C1394Camera::CheckLink', according to the docs defined as follows:
int
CheckLink(
);
Trying to invoke the function in c# as:
- public class Kamera
-
{
-
[DllImport("1394camera.dll")]
-
private static extern int CheckLink();
-
public int Anzahl;
-
public Kamera()
-
{
-
Anzahl = CheckLink();
-
}
-
}
doesn't work, neither does
- public class Kamera
-
{
-
[DllImport("1394camera.dll", EntryPoint = "C1394Camera::CheckLink")]
-
private static extern int CheckLink();
-
public int Anzahl;
-
public Kamera()
-
{
-
Anzahl = CheckLink();
-
}
-
}
I always get an "Unable to find an entry point named 'C1394Camera::CheckLink' in DLL '1394camera.dll'."
How can I correctly address the functions in this dll?
Thank you in advance, Franz