Hi, this code works in other compilers such as Bloodshed, and even runs fine when I use the command line. However I need it to work in CVI... here is where new.c references set_pts:
#include <stdio.h>
#include <ctype.h>
#include <spinpts.h>
#include <ansi_c.h>
int spinpts300(double frequency, int phase)
{
PTSDevice PTS300;
PTS300.mfreq = 300.0;
PTS300.allowPhase = 1;
PTS300.fullRange10MHz = 0;
return set_pts(frequency, phase, &PTS300);
}
and here is where spinpts.h calls the function:
#ifdef WINDOWS
#ifdef DLL_EXPORTS
#define SPINPTS_API _declspec(dllexport) __stdcall
#else
#define SPINPTS_API _declspec(dllimport) __stdcall
#endif
#else
#define SPINPTS_API
#endif
SPINPTS_API int set_pts( double frequency, int phase , PTSDevice* device );
I have already generated DLL import libraries for the .h