Here's how I'm exporting all my functions:
#define USBRADIO_API extern "C" __declspec(dllexport) //Functions USBRADIO_API bool HWInit(); USBRADIO_API bool HWDeInit(); USBRADIO_API bool FMTune (long frequency); ...
Which is typical, right?
here are some of the actual function definitions:
USBRADIO_API bool
HWInit ()
{
bool ret = OpenFMRadio(&fmRadioDevice);
return (ret);
}
USBRADIO_API bool
HWDeInit ()
{
CloseFMRadio(&fmRadioDevice);
return true;
}
USBRADIO_API void
TuneFreq (long frequency)
{
fmRadioDevice.Tune((double)frequency/1000);
}
Edited by lukeescude, 04 January 2012 - 01:10 AM.











