User`s guide
Universal Library User's Guide Universal Library for .NET Description & Use
28
Data Logger methods
In 32-bit Windows applications, you access information contained in binary log files by calling the API
functions. In .NET applications, you access this information by calling the DataLogger class and its methods.
The following example demonstrates how to retrieve the name of the first binary log file using the
cbLogGetFileName() function and GetFileName() method.
C/C++ application
C# application
char filename(50);
char* path = "C:\\LogData";
int retval = 0;
retval =
cbLogGetFileName(GetFirst, path,
filename);
string filename = new string('\0',50);
string path = "C:\\LogData";
ErrorInfo status;
status =
DataLogger.GetFileName(MccService.GetFirst,
ref path, ref filename);