Click here to Skip to main content
15,895,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I bought an FS88H futronic fingerprint scanner and downloaded the file containing the API, ftrScanAPI.dll. This file cannot be added as a reference to the C# project. The API too does not come with sample source codes in c#. Please can someone help me out with some codes or sites to download a sample code to use in C#.

What I have tried:

I have tried searching for some sample code in c# to use using google but to no avail.
Posted
Updated 6-Sep-16 20:48pm
v2
Comments
Patrice T 6-Sep-16 20:52pm    
Advice: fo the users forum.
Dave Kreskowiak 6-Sep-16 22:54pm    
Your absolute best source of information is going to be Futronic and their forums.

You can't add a reference to the .DLL because it's not a COM-based or .NET-based .DLL. You have to use P/Invoke to call the functions in that library.

You should talk to the people who created it - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!

As Dave says, if the DLL file is not a .NET assembly but Native code then you cannot add it as a reference, you instead have to use P/Invoke: Platform Invoke Tutorial (C#)[^].
That's not necessarily simple: you need to be very careful to manage datatypes in particular to make sure that what you pass to the API functions are what they expect - so read both the documentation of the functions and the tutorial material very carefully.
 
Share this answer
 
Comments
CPallini 7-Sep-16 2:45am    
5.
In addition to Griff's answer, it is worth noting C# samples are provided with the Futronic SDK, see Futronic Technology Company Limited[^].
 
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