Thanks Mert for your reply.
1) I try check the version of cvirte.dll but never find any values - so I download and install the latest version from ni web (NILWCVIRTE811.exe) (btw - how to localize and find version informations ?).
2) There are no change in wrong behaviour (see code segment below):
FlushOutQ (Port);
if ((hndFLoad = OpenFile (Project.symtable.loadfile, VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_BINARY)) < 0) {
MessagePopup ("Error opening file", GetFmtIOErrorString (GetFmtIOError()));
}
else if (GetFileInfo (Project.symtable.loadfile, &length) == 1) {
pLoad = malloc (length * sizeof(char));
ReadFile (hndFLoad, pLoad, length);
// count = ComWrt (Port, pLoad, length); // Using the ComWrt function and length - works
count = ComFromFile (Port, hndFLoad, length, -1); // Using the ComFromFile function - doesn't work, return count = 0
// count = ComFromFile (Port, hndFLoad, 0, -1);
// Using the ComFromFile function - doesn't work, return count = 0
free (pLoad);
}
3) Any suggestions?
Thanx,
Jiri