Running FGLink.dll from MATLAB

Hi,

I am looking for a way to use the FGLink.dll library from MATLAB.
As far as I see the library should be loaded using the “loadlibrary” command, that requires a C header file.

Where can I get that header file?

Sorry, there is no header file available for the FGLink.DLL yet.
I think the contents of the file should be:

[code]#ifdef __cplusplus
extern “C” {
#endif

#define FUNCTION __declspec(dllimport)

FUNCTION __stdcall SetGen(long func, float freq, float ampl, float offset);
FUNCTION __stdcall SetSweep(float freq1, float freq2, float ampl, float offset);
FUNCTION __stdcall SetLibWave(float freq, float ampl, float offset, unsigned char *Pointer);
FUNCTION __stdcall StartGen();
FUNCTION __stdcall StopGen();
FUNCTION bool __stdcall GenReady();

#ifdef __cplusplus
}
#endif[/code]