I am also getting the same error message even after generating prototypes. There must be something missing from the C file or the prototypes since I still get the message "Creating a DLL with no exports".#include "stdtst.h"
#include "tsutil.h"
#include "SerialNumberTest.h"
int __stdcall DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
if (InitCVIRTE (hinstDLL, 0, 0) == 0)
return 0; /* out of memory */
break;
case DLL_PROCESS_DETACH:
CloseCVIRTE ();
break;
}
return 1;
}
int __stdcall DllEntryPoint (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
/* Included for compatibility with Borland */
return DllMain (hinstDLL, fdwReason, lpvReserved);
}
void __declspec(dllexport) TX_TEST TS_SerialNumber1(tTestData *testData, tTestError *testError)
{
return;
}
This is the header file after CVI generated the prototypes./************** Static Function Declarations **************/
/************** Global Variable Declarations **************/
/************** Global Function Declarations **************/
extern void __declspec(dllexport) __cdecl TS_SerialNumber1(tTestData *testData,
tTestError *testError);
extern int __stdcall DllMain(HINSTANCE hinstDLL,
DWORD fdwReason, LPVOID lpvReserved);
extern int __stdcall DllEntryPoint(HINSTANCE hinstDLL,
DWORD fdwReason, LPVOID lpvReserved);
John Bessire