. I think, you missed my point. I am able to create the dll where I do not need to specify data type, because labview takes care of that. The problem is whe I am using the DLL where I need to manually set the name and data type. Another problem is that the same data type are not available in that call dll function. If you look at the header file some of the data types do not look familiar to any language type under the function calls.
Header file:
#include "extcode.h"
#pragma pack(push)
#pragma pack(1)
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
LVBoolean status;
int32 code;
LStrHandle source;
} TD1;
void __stdcall RL5000Initialize(LVRefNum *VISASession, uInt32 BaudRate,
LVBoolean *ConfigureResourceTYes, LVBoolean *
IDQueryFDonTCheck,
LVBoolean *ResetFDonTReset, TD1 *errorInNoError, uInt32 TimeoutMSec,
LVRefNum *dupVISASession, char ResetResponse[], TD1 *errorOut, int32 len);
void __cdecl RL5000Close(LVRefNum *VISASession, TD1 *errorInNoError,
TD1 *errorOut);
void __cdecl RL5000Run(LVRefNum *VISASession, int16 Retries,
TD1 *errorInNoError, LVRefNum *dupVISASession, TD1 *errorOut);
void __cdecl RL5000Stop(LVRefNum *VISASession, int16 Retries,
TD1 *errorInNoError, LVRefNum *dupVISASession, TD1 *errorOut);
MgErr __cdecl LVDLLStatus(CStr errStr, int32 errStrLen, void *module);
#ifdef __cplusplus
} // extern "C"
#endif
#pragma pack(pop)