Ok Ive built my CIN as described in the Labview 7 help files. Ive attached it as a resource - but when the system runs I cannot get it to enter debug mode. Ive tried compiling from the IDE and running the debug version of the library (in fact that is all that is compiled!).
A sample of the actual code is below. Im not 100% sure the CIN is being correctly loaded at run time. Has anyone else found the same problem?, any ideas?
Our OS is Win2K, LV7 and Visual Studio 6
The application is going to replace the ActiveX object which does not offer enough power for our systems, and has an inherent problem with clean installations of Matlab6.5 (and yes we did update all the DLL's from both NI and Mathworks but it still fails).
Thanks,
marc
CODE EXTRACT
typedef struct {
LVBoolean status;
int32 code;
LStrHandle source;
} TD1;
MgErr CINRun(LStrHandle *machineName, LVRefNum *MLAppDIMLApp,
LStrHandle *CompName, LVBoolean *openNewInstance, TD1 *errorOut);
MgErr CINLoad(RsrcFile reserved);
MgErr CINRun(LStrHandle *machineName, LVRefNum *MLAppDIMLApp,
LStrHandle *CompName, LVBoolean *openNewInstance, TD1 *errorOut)
{
/* Insert code here */
Unused(reserved);
DebugBreak();
return noErr;
}
MgErr CINLoad(RsrcFile reserved)
{
Unused(reserved);
DebugBreak();
return noErr;
}