|
-
Jul 26th, 2016, 12:23 AM
#1
Thread Starter
Frenzied Member
Stdcall wrapper for libfftw3-3.dll
FFTW is the most popular FFT (fast fourier transform) component out there, but the problem is its DLL file libfftw3-3.dll uses the CDECL calling convention, while VB6 only can handle the STDCALL calling convention natively. To get around that problem, I've created a wrapper, that is a DLL file called FFTW3Wrapper.dll. I wrote it in assembly language, and assembled it in NASM and linked it in GoLink. I then wrote a module (.bas file) in VB6 that has all the needed declare statements for my wrapper DLL file. Here's the link to download the zip file that has both the DLL file (both source code and compiled) and BAS file in it, and a readme file that has important information (list of files in the zip, and copyright info, etc). It also has a .bat file in it. If you have nasm.exe, golink.exe, the asm file, and the bat file all in the same folder, just run the bat file, and it will compile the dll file for you.
Link to download zip package for my FFTW wrapper FFTW3Wrapper.zip
Link to official FFTW download ftp://ftp.fftw.org/pub/fftw/fftw-3.3.4-dll32.zip
You'll need to download that zip file to get libfftw3-3.dll, or my wrapper dll won't do you any good.
Here's what you will need if you want to compile it yourself.
Link to official NASM download http://www.nasm.us/pub/nasm/releaseb...2.02-win32.zip
You'll need to go here to download NASM so you can assemble the source code asm file for the wrapper, to get the obj file.
Link to official GoLink download http://www.godevtool.com/Golink.zip
You'll need to download GoLink so you can link the obj file, to get the dll file.
Last edited by Ben321; Jul 30th, 2016 at 04:31 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|