Steviebone
Programmer
Thanks in advance to anyone that can help me.
I need to run some FoxPro programs that make extensive use of the fgets() function. These programs were written some years ago and unfortunately Microsoft altered the function in later versions limiting its maximum length return to 8192 bytes. Earlier versions of FoxPro did not have this limitation.
After experimenting with various ways to get around this problem I've come to the conclusion that I need a modified low-level function to replace fgets that does not place a limit on maximum string size. Because the function is called recursively on large files it needs to be efficient and likely needs to be coded in C++ and placed in a FoxPro Library fll. Experiments with writing code within native FoxPro proved to be too inefficient to be useful.
It's been some years since I've written C++ and I thought that before I delved into creating this myself I would see if anyone in the community had something to offer. Essentially all I need is a one function library that I can use in lieu of the fgets in native foxpro. Ideally it would function exactly as the native version but without the size limit just like in the older versions of FoxPro.
Can anyone help me with this? I'm sure this is just a few lines of C++ and I know some of you are experienced at creating the flls. I can dig up a compiler if I need to.
Thanks again for any assistance. Why Microsoft decided to alter this internal function without any backwards compatibility is beyond me?
Thanks again.
I need to run some FoxPro programs that make extensive use of the fgets() function. These programs were written some years ago and unfortunately Microsoft altered the function in later versions limiting its maximum length return to 8192 bytes. Earlier versions of FoxPro did not have this limitation.
After experimenting with various ways to get around this problem I've come to the conclusion that I need a modified low-level function to replace fgets that does not place a limit on maximum string size. Because the function is called recursively on large files it needs to be efficient and likely needs to be coded in C++ and placed in a FoxPro Library fll. Experiments with writing code within native FoxPro proved to be too inefficient to be useful.
It's been some years since I've written C++ and I thought that before I delved into creating this myself I would see if anyone in the community had something to offer. Essentially all I need is a one function library that I can use in lieu of the fgets in native foxpro. Ideally it would function exactly as the native version but without the size limit just like in the older versions of FoxPro.
Can anyone help me with this? I'm sure this is just a few lines of C++ and I know some of you are experienced at creating the flls. I can dig up a compiler if I need to.
Thanks again for any assistance. Why Microsoft decided to alter this internal function without any backwards compatibility is beyond me?
Thanks again.