我可以在C#引用中添加fkattend.dll吗? [英] Can I add fkattend.dll in C# reference?

查看:230
本文介绍了我可以在C#引用中添加fkattend.dll吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

FKAttend.DLL不添加c#引用;



和C#[DLLImport]无法找到`FKAttend.DLL`

有任何解决方案或依赖



我的尝试:



FKAttend.DLL not add in c# reference;

And C#[DLLImport] Couldnt find `FKAttend.DLL`
have any solution about it or dependency

What I have tried:

[DllImport("FKAttend.dll", CharSet = CharSet.Ansi)]
        public static extern int FK_ConnectComm(
            int anMachineNo, 
            int anComPort, 
            int anBaudRate, 
			string astrTelNumber, 
            int anWaitDialTime, 
            int anLicense, 
            int anComTimeOut);

推荐答案

FKAttend.dll不是系统DLL,它是指纹识别系统的一部分(并且可能是系统制造商专有的)。

因此,它不太可能处于显而易见的地方系统将搜索:首先找到它,将其复制到您的项目文件夹并将其添加到您的项目,以便它最终在您的BIN文件夹中。



那个方式,系统有更好的机会找到它! DLL搜索的规则如下:动态链接库搜索顺序(Windows) [ ^ ]

<如果这不起作用,请检查您的应用程序设置:如果DLL是32位文件而您的应用程序是64(反之亦然),则可能会导致类似问题。
FKAttend.dll is not a system DLL, it is part of a fingerprint recognition system (and is presumably proprietary to the manufacturer of the system).
As a result, it isn't likely to be in an "obvious place" that the system will search: Start by locating it, copying it to your project folder and adding it to your project so it ends up in your BIN folders.

That way, the system has a better chance of finding it! The rules for DLL searching are here: Dynamic-Link Library Search Order (Windows)[^]

If that doesn't work, check your app settings: if the DLL is a 32 bit file and your app is 64 (or vice versa) it could cause a similar problem.


这篇关于我可以在C#引用中添加fkattend.dll吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆