Gergely_Pongracz
Well Known Member
Hi List,
I have a strange problem...
In earlier (Xe, B9, E8.10) versions I used some business functions to manage flat files written in C using stdio calls e.g. fprintf, fscanf, etc.
These functions simply do not work on TR8.97 and 8.98. They are compiled all right but every time processing reaches a stdio call the program crashes.
I substituted the calls with the appropriate jde calls and some of the functions work, but with jdeFscanf (more of them) I get another new error:
Code is compiled all right, runs without crashing reads the first line correctly but does not move to the second line. I had no luck with either the scanf or the gets type functions. Seems as if the functions recognized CRLF as EOF.
The file I want to read is a simple text file (non-Unicode) and I want to convert line-by-line to Unicode JDE strings for processing.
Any Ideas? Either for stdio or for CRLF issue?
Regards
Gergely
Current problem is on B9 TR8.97 on Win/Oracle but seems to occur on every 8.97/9.98 installation on Win and Linux
I have a strange problem...
In earlier (Xe, B9, E8.10) versions I used some business functions to manage flat files written in C using stdio calls e.g. fprintf, fscanf, etc.
These functions simply do not work on TR8.97 and 8.98. They are compiled all right but every time processing reaches a stdio call the program crashes.
I substituted the calls with the appropriate jde calls and some of the functions work, but with jdeFscanf (more of them) I get another new error:
Code is compiled all right, runs without crashing reads the first line correctly but does not move to the second line. I had no luck with either the scanf or the gets type functions. Seems as if the functions recognized CRLF as EOF.
The file I want to read is a simple text file (non-Unicode) and I want to convert line-by-line to Unicode JDE strings for processing.
Any Ideas? Either for stdio or for CRLF issue?
Regards
Gergely
Current problem is on B9 TR8.97 on Win/Oracle but seems to occur on every 8.97/9.98 installation on Win and Linux