FFTW from C#?

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,

Has anyone create a DLL for FFTW that can be used from C#?

I was able to compile all the .c files and produce .lib's, but I don't
think the .libs I created can be used in C#. I tried to create a DLL
from the .lib's, but I couldn't figure out how to make it work.

Thanks!!!

John
 
Hi John,

I'd like to share the following information with you:

1. I suggest that you can create a DLL and export the FFTW APIs by using a
DEF file in the DLL. Please refer to the following MSDN article:

Exporting from a DLL Using DEF Files
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html
/_core_export_from_a_dll_using_..def_files.asp

2. Use P/Invoke to call the exported functions from within C# application.

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconconsumingunmanageddllfunctions.asp

3. In addition, FFTW is a third party library, you can also contact
http://www.fftw.org/ and see if there is any existing DLL for it.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
 
I think the best way to use FFTW from C# is to write a C funtion that would
perform memory allocation as well as setup fftw_plan, etc. Then expose the C
function through a DLL. You then call the C routine via platform interop.
 
Back
Top