473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

FFTW from C#?

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
Nov 15 '05 #1
2 7519
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/de...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/de...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.
Nov 15 '05 #2
LTO
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.

"John" <jo********@hotmail.com> wrote in message
news:d8**************************@posting.google.c om...
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

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Stanley | last post by:
Hi, I'm using FFTW library to do my FFT calculation. My sample size is so large to get the resolution I want ( >10^7 samples). It's time and memory consuming. Since I'm just interested in the...
1
by: JoePyeWuz | last post by:
Hi, I'm pretty new to using outside libraries...so I don't really understand how to install the FFTW(fast fourier transform made at MIT) library for use with my C++ programs. I have Windows XP and...
4
by: Erica | last post by:
Hi, I am currently working on a program using FFTW-> http://www.fftw.org . My basic C program to compute the 2D Fourier transform of a bunch of data works fine when I compile it with gcc....
2
by: Marie | last post by:
Hi, I´m trying to perform Fourier Transforms on contiuously incoming images from a camera. I have sofar been using the Basic Interface for planning and execution for every image. Later I have...
4
by: Paul Brown | last post by:
Thanks for the replies Tristan, Eric, Steven & Kurt. They have given me some good leads. I present justification for a lot of the comments that drew (constructive) criticism below. Firstly, let...
3
by: Fabio Garufi | last post by:
Hi, all, I built the fftw-3.0.1-fma on a LynxOS 4.0 running on a board equipped with a PowerPC G4 7457. To compile it I had to slightly modify the configure script to use the -fvec instead of...
5
by: spasmous | last post by:
I'm looking into upgrading from version 2 to version 3 of the FFT code package FFTW (www.fftw.org). The two versions are incompatible - a lot of it has to do with changing from a complex struct...
17
by: Soumyadip Rakshit | last post by:
Hi, Could anyone direct me to a very good 1D DCT Implementation in C/C++ My data is in sets of 8 numbers. Thanks a ton, Soumyadip.
2
by: Matthias Pospiech | last post by:
I need a fast and reliable FFT algorithm in C++. I found a C algorithm on the webseite http://www.fftw.org/index.html (FFTW). But I am stuck at the point howto actually use the algortihm and...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.