Hello,
We're moving PB 2017 application from WIN7 to WIN10. One of the processes in that app is to process files in a given directory/folder. Currently on WIN7 we use 'FindFirstFileA' WIN API to start the processing which works....returned value/handle is > 0.
However when I try running app on WIN10 box, the 'FindFirstFileA' returns value of -1.
I'm stuck here and all of our PB apps need to be moved off of WIN7 to WIN10 right after beginning of 2020. If anyone could shed some light on this for me or provide suggestion that would be much appreciated!!!!
Thanks, Dave
My strategy is actually always use NVOs to encapsulate Win API calls. Every external function defined as PRIVATE EXTERNAL function. Hence, I have a of_FindFirstFile. In "my" facade NVO's public functions I perform whatever preprocess and postprocess that may be required. Like pre-allocate PB VM memory for pass-by-REF parms or conversion between API specific date/time formats to PB's internal date/time formats.
Encapsulate to prevail in this interconnected myriad of apps and APIs.