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:
intTrying to invoke the function in c# as:
CheckLink(
);
Expand|Select|Wrap|Line Numbers
- public class Kamera
- {
- [DllImport("1394camera.dll")]
- private static extern int CheckLink();
- public int Anzahl;
- public Kamera()
- {
- Anzahl = CheckLink();
- }
- }
Expand|Select|Wrap|Line Numbers
- public class Kamera
- {
- [DllImport("1394camera.dll", EntryPoint = "C1394Camera::CheckLink")]
- private static extern int CheckLink();
- public int Anzahl;
- public Kamera()
- {
- Anzahl = CheckLink();
- }
- }
How can I correctly address the functions in this dll?
Thank you in advance, Franz