Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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);
Posted
Updated 15-Mar-17 22:36pm
Comments
Graeme_Grant 16-Mar-17 3:18am    
This Google Search should find what you are looking for: how to add unmanaged dll in c#[^]

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900