08-01-2005 07:52 PM
08-01-2005 08:01 PM
08-02-2005 12:56 AM
08-02-2005 09:52 PM
Thank you,Soroush!
I've seen an example,as the attached bmp file below.
you can see the CLF's first input parameter conneted to nothing,but it gets an 1-D array output.
So can you explain how the CLF and DLL work? I'm confused.
Thanks!
08-02-2005 10:26 PM
Hi,
Right Click the DLL node and select "configure..." to see DLL's settings. In the "parameter" box, select data related to 1D array and check settings.
I think it is quite different from my example. As a general law, whenever you have pointer values as outputs of DLL nodes, you should do some tricks to get that data correctly.
Don't hesitate to ask more if you think it'll be helpful.
08-03-2005 10:01 AM
08-03-2005 11:40 AM
08-03-2005 11:43 AM
08-08-2005 09:21 PM
08-22-2005 10:50 AM - edited 08-22-2005 10:50 AM
_declspec(dllexport) unsigned int CRCMode(unsigned char *start_addr,unsigned char *end_addr,unsigned char* data)
{
DWORD iBytesWritten;
DWORD iBytesRead;
unsigned char ch[36];
unsigned char putin[15];
putin[0]='C';
putin[1]= ' ';
memcpy(&putin[2],start_addr,4);
putin[6]= ' ';
memcpy(&putin[7],end_addr,4);
putin[11]='\0';
putin[12]='\r';
WriteFile(hCom,putin,13,&iBytesWritten,NULL);
ReadFile(hCom,&ch,sizeof(ch),&iBytesRead,NULL);
ch[35] = '\0';
data = &ch[0];
return 0;
}
Message Edited by Newguy100 on 08-22-2005 10:56 AM