Project1 contain :
******************
+ essai2.c :
------------
#include "tsutil.h"
#include "essai2.h"
extern void __declspec(dllexport) __stdcall essai2(CAObjHandle seqContextCVI, short *errorOccurred, long *errorCode, char errorMsg[1024])
{
int error = 0;
Error:
if (error < 0)
{
*errorOccurred = TRUE;
}
return;
}
+ essai2.h :
------------
#include "tsutil.h"
extern void __declspec(dllexport) __stdcall essai2(CAObjHandle seqContextCVI,short *errorOccurred, long *errorCode,char *errorMsg);
With the project create essai2.lib
essai2.dll
Project_main contain :
**********************
+ essai.c :
-----------
#include "tsutil.h"
#include "essai2.h"
int __stdcall DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
/* Respond to DLL loading by initializing the RTE */
if (InitCVIRTE (hinstDLL, 0, 0) == 0)
return 0;
break;
case DLL_PROCESS_DETACH:
/* Respond to DLL unloading by closing the RTE for its use */
if (!CVIRTEHasBeenDetached ())
CloseCVIRTE ();
break;
}
/* Return 1 to indicate successful initialization */
return 1;
}
void __declspec(dllexport) __stdcall essai(CAObjHandle seqContextCVI, short *errorOccurred, long *errorCode, char errorMsg[1024])
{
int error = 0;
Error:
if (error < 0)
{
*errorOccurred = TRUE;
}
return;
}
+ essai2.h :
------------
+ essai2.lib:
-------------
With this project create essai.lib
essai.dll
In testStand, when I call essai.dll, I see only the function 'essai' and not 'essai2'.