the closing of opened console window automatically closes the whole FoxPro session; the SetWindowLong can not change attributes for the console window (error=5, access denied);
main FoxPro window stops redrawing itself after a console window is created.
And of course, the main unsolved issue is finding a practicality in console windows.
* * *
I noticed that in VFP6 the code works a bit different -- methods ClearScreen and SetCursorPos. You may try to declare and call SetConsoleCursorPosition with just two parameters -- INTEGER and @STRING -- instead of INTEGER, SHORT, SHORT.
I'm receiving a "Declare DLL call caused an exception." error in the following line: = FillConsoleOutputCharacter(THIS.hStdout, 32,; nBufsize, 0,0,0) Please, could you take a look at it? I'm using VFP 9 and Windows 7 Professional (32 bits).
AM | 2013-06-23 11:33:01
Set a break point and check values of THIS.hStdout and nBufsize before calling FillConsoleOutputCharacter. Neither should be zero.