| Author |
Message |
|
onemorezero
|
Post subject: New .Net Wrapper Posted: Mon Nov 29, 2010 11:54 am |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
|
Hi all,
I am currently in the process of developing a C# .Net wrapper for Fann that interfaces directly with the C/C++ layer and does not require the SOAP web service. If anyone is interested in getting a first look please let me know and I'll send it over to them.
Regards,
James
|
|
 |
|
 |
|
Steffen Nissen
|
Post subject: Re: New .Net Wrapper Posted: Mon Nov 29, 2010 3:20 pm |
|
Joined: Tue Mar 06, 2007 7:24 pm Posts: 264 Location: Copenhagen, Denmark
|
|
 |
|
 |
|
onemorezero
|
Post subject: Re: New .Net Wrapper Posted: Mon Nov 29, 2010 4:22 pm |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
|
Hi Steffen,
I'll get it stable over the next couple of days and give you an FTP link to the source.
Thanks,
James
|
|
 |
|
 |
|
bluekid
|
Post subject: Re: New .Net Wrapper Posted: Wed Dec 01, 2010 1:29 pm |
|
Joined: Thu Apr 19, 2007 3:05 pm Posts: 109
|
|
 |
|
 |
|
onemorezero
|
Post subject: Re: New .Net Wrapper Posted: Thu Dec 09, 2010 2:24 pm |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
|
I'm trying to make a more .Net oriented version than Mr Stagg's that reflects the fann_cpp classes as closely as possible. Sorry for the delay, I hope to get the first cut out this weekend.
Regards,
James
|
|
 |
|
 |
|
onemorezero
|
Post subject: Re: New .Net Wrapper Posted: Sat Dec 11, 2010 12:52 am |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
|
Here's my initial alpha cut.
See attached file
Just unzip into your fann 2.1.0 folder and navigate into the Fann.Net folder for the solution. You will need to get a copy of the boost library and set your include path to point at it in order to build. Also make sure that you build Double MultiThreaded projects in the existing MicrosoftWindowsDll project as Fann.Net requires these libs.
At the moment Callbacks are not implemented because of a strange crash that occurs ( if anyone has any clues as to what this may be then please let me know).
My contact details are at the top of the source files, feel free to get in touch if you have any questions or ideas.
Have fun.
James
Last edited by onemorezero on Thu Feb 03, 2011 8:50 am, edited 1 time in total.
|
|
 |
|
 |
|
Dr_T
|
Post subject: Re: New .Net Wrapper Posted: Wed Jan 05, 2011 1:37 pm |
|
Joined: Wed Jan 05, 2011 1:20 pm Posts: 2
|
|
Dear all,
Please find attached my very crude (rushed) .net interface to the FANN dll. Very basic functionality at the moment and the code is messy with sparse comments. I'll probably only update as I need, but will post here. I also apologise for duplicating the assembly name fannDotNet - I wasn't feeling very imaginative! The zip file includes my VS2005 C# source and some C# code for testing the xor dataset. There is also a MatLab script included (fann.m) that uses the library. It's hiding in the test code debug directory.
Cheers,
Pete
| Attachments: |
File comment: .NET Wrapper to FANN C Library written in C#
fannDotNet.zip [191.5 KiB]
Downloaded 354 times
|
|
|
 |
|
 |
|
Mockefj
|
Post subject: Re: New .Net Wrapper Posted: Tue May 31, 2011 9:57 am |
|
Joined: Tue May 31, 2011 9:49 am Posts: 6
|
|
Hey,
When runing your Xor test I get the followin error:
{"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.":null}
I'm using VS 2010 Express
|
|
 |
|
 |
|
onemorezero
|
Post subject: Re: New .Net Wrapper Posted: Thu Jun 02, 2011 9:11 am |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
|
Hi,
You will either need to set your project to build using the the .Net 2 framework or rebuild the wrapper in .Net 4.
Regards,
James
|
|
 |
|
 |
|
Mockefj
|
Post subject: Re: New .Net Wrapper Posted: Fri Jun 03, 2011 3:31 pm |
|
Joined: Tue May 31, 2011 9:49 am Posts: 6
|
onemorezero wrote: Hi,
You will either need to set your project to build using the the .Net 2 framework or rebuild the wrapper in .Net 4.
Regards,
James Hey James, Thanks for the reply... I solved it with a configuration file  About the callbacks, any idea what is causing the problems? Regard Franco
|
|
 |
|
 |
|
onemorezero
|
Post subject: Re: New .Net Wrapper Posted: Fri Jun 03, 2011 8:47 pm |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
|
Glad you got it working.
Sorry I haven't had chance to look into the callback issue because I have been bogged down with the stuff that pays the bills.
Regards,
James
|
|
 |
|
 |
|
onemorezero
|
Post subject: Re: New .Net Wrapper Posted: Tue Jun 07, 2011 1:12 am |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
Got the callbacks fixed  please see the latest version.
|
|
 |
|
 |
|
decatf
|
Post subject: Re: New .Net Wrapper Posted: Thu Aug 04, 2011 7:59 pm |
|
Joined: Thu Aug 04, 2011 7:46 pm Posts: 4
|
|
Where can we get the latest version?
Thanks.
|
|
 |
|
 |
|
onemorezero
|
Post subject: Re: New .Net Wrapper Posted: Thu Aug 04, 2011 8:13 pm |
|
Joined: Mon Nov 29, 2010 10:23 am Posts: 16
|
|
 |
|
 |
|
decatf
|
Post subject: Re: New .Net Wrapper Posted: Thu Aug 04, 2011 8:21 pm |
|
Joined: Thu Aug 04, 2011 7:46 pm Posts: 4
|
|
Will there be an updated version of the code?
My app uses the .Net 4 framework so I was using the wrapper rebuilt in .Net 4.
|
|
 |
|
 |
|