Topic: Source: Using LibNFC 1.3.9 with C#

Dear readers,


I saw a request to have a c# function, and I recently also got a similar question in my emailbox, so I created a first example.
You can download it at
http://www.huuf.info/LibNFCdotNet.rar


I'll expand the library over time, if people want it to be expanded.

Re: Source: Using LibNFC 1.3.9 with C#

Thanks for this. I was just about to post a question for VB.net implimentation.

If you dont mind posting a vb.net source that would be great.

Re: Source: Using LibNFC 1.3.9 with C#

Nice port Anon122. Do you have a more recent version  already?

Re: Source: Using LibNFC 1.3.9 with C#

Anon122 wrote:

Dear readers,


I saw a request to have a c# function, and I recently also got a similar question in my emailbox, so I created a first example.
You can download it at
http://www.huuf.info/LibNFCdotNet.rar


I'll expand the library over time, if people want it to be expanded.

Hello,

through your work with C # I understand how to implement the libraries.

Currently, I try to rewrite similar code with my DLL (libnfc 1.5.1).

So I change the code in C # but I am having some problems.

Can you help me?

Re: Source: Using LibNFC 1.3.9 with C#

i would love to help and write a wrap for c# for 1.5.1 however.. i can't seem to get the DLL (not able to cmake mingw etc)
so if someone can post the 1.5.1 DLL for 32bit x86 win xp  that would be great... thanks!

Re: Source: Using LibNFC 1.3.9 with C#

lnfccrc wrote:

i would love to help and write a wrap for c# for 1.5.1 however.. i can't seem to get the DLL (not able to cmake mingw etc)
so if someone can post the 1.5.1 DLL for 32bit x86 win xp  that would be great... thanks!

I can provide a DLL 1.5.1. But I designed it in win7 64bit.

You can create a wrapper for the management of the libnfc library in c #?

that would be great !!!

Re: Source: Using LibNFC 1.3.9 with C#

If you need it I can provide a 1.5.1 32bit DLL !
Please tell me if you need it smile

Leo

Re: Source: Using LibNFC 1.3.9 with C#

rleo79 wrote:

If you need it I can provide a 1.5.1 32bit DLL !
Please tell me if you need it smile

Leo

it would be possible to run this wrapper with an application in c # win7 64-bit?

Re: Source: Using LibNFC 1.3.9 with C#

Hi, i'm new to vb.net programming. I need to develop in Visual Basic an authentication application that reads from a phone a couple of data trough NFC. I use an ACR122u reader.

Do you think your library can help me?
I downloaded your code, and opened with visual basic studio 2010. I see an empty form, how i can use it?

Thanks

PS: i'm under win7 64-bit

Re: Source: Using LibNFC 1.3.9 with C#

I just tried out the original post project. and it works!
I Have been seaching for this for about a week, and it seems to work smoothly. so just all kinds of thumbs up from me.

11 (edited by pavlon 2012-06-13 10:10:28)

Re: Source: Using LibNFC 1.3.9 with C#

Hi Anon, thank you for your code, it works for me. I tried to replace nfc.dll file  with libnfc.dll obtained from building the new version of libnfc 1.6.0, but the call  LibNFC.nfc_list_devices(ip, 1, ref uDev); thrown an "AccessViolationException". Did i do something wrong?

Thanks

Re: Source: Using LibNFC 1.3.9 with C#

First of all, hello to all because I'm new here.

Recently I've bought ACR122U NFC Reader but I can't reach how to write in the nfc tags.

I've tried gogotags nfc sdk and it works like a charm but I can't pay 249$ for it...

I would like only to write and read one number.. I've seen this post:

http://www.libnfc.org/community/topic/3 … 39-with-c/

But I don't know how to read or write.

Thanks a lot and sorry for noob questions but I'm new with nfc..

Re: Source: Using LibNFC 1.3.9 with C#

Hello, I'm new too.

I'm learning about NFC, and this is my first intent on windows, I tried with linux and Mac.
I have W7 32 bit, please, rleo79, can you post the 32 bit dll version?

Thank you very much!

Re: Source: Using LibNFC 1.3.9 with C#

Hi!

I'm doing my Final Year Project of BS where I use NFC tags (both read/write modes) with a desktop application. I'm totally new to this and totally clueless where to begin. I have to connect my desktop app with the reader to read and write NFC tags.

I'm using vs2010, c# and Win7 OS and ACR122U reader; and I would Really, REALLY appreciate any kind of help in this context.

Thank you! smile