This directory contains C++ headers and source code used to wrap the ABFFIO.dll from the ABF FSP 2.01 (circa 2007) into C code for use in ChanneLab. These files were initially copied over from a copy of the ABFDLL project on an external hard drive, and I assume are the most recent versions used for ChanneLab, but cannot verify this.
The exported functions need to use the __stdcall
calling convention to be
compatible with the OldABFDLL, which is used by ChanneLab. This can be
accomplished using the /Gz
compiler option.
Note that the ABFFIOforCL.h file needs to use the BOOL
typedef to be compatible with C.
- Include the
ABFFIOforCL.h
andABFConstants.h
files in ChanneLab project. - Update
ABFFIOforCL.h
to use theBOOL
typedef insted of the C++ data typebool
. - Add the
ABFFIO.dll
from the Axon ABF File Support Pack to the ChanneLab project. - Add the
ABFFIOforCL.lib
andABFFIOforCL.dll
files to the ChanneLab project. - Make sure LabWindows/CVI uses the
__stdcall
calling convention.
The target machine is x86, which is accomplished by running vcvars32.bat
.
This seemed to work when just the Microsoft Visual Studio 10.0 directory and subdirectories were on the Path.
cl /EHsc /c /Gz ABFFIOforCL.cpp
link /DLL ..\..\FSP_ABF_FileSupportPack_2.03\AxonDev\Lib\abffio.lib ABFFIOforCL.obj