Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Problems in Windows 7

hkausl
Beginner
747 Views
Hello,
I'm new in this forum. I have an application compiled with Intel Fortran 9.1 It's a console application with some DLG-Windows. I once developed the program with DEC-Fortran and portet it to Intel Fortran. I catch Keyboard Keys with PEEKCHARQQ and GETCHARQQ. All worked till Windows XP. Now with windows 7, I have the problem, that Kexbiard Reading works until a static DLG-Menue was called, there's nothing more in the keyboard buffer. I have to kill and restart the program. Can anybod help
Thanks
0 Kudos
5 Replies
jimdempseyatthecove
Honored Contributor III
747 Views
Quoting - hkausl
Hello,
I'm new in this forum. I have an application compiled with Intel Fortran 9.1 It's a console application with some DLG-Windows. I once developed the program with DEC-Fortran and portet it to Intel Fortran. I catch Keyboard Keys with PEEKCHARQQ and GETCHARQQ. All worked till Windows XP. Now with windows 7, I have the problem, that Kexbiard Reading works until a static DLG-Menue was called, there's nothing more in the keyboard buffer. I have to kill and restart the program. Can anybod help
Thanks

Sounds like the "Focus" is not returned to the console application. Does clicking on/in the console application window restore the keyboard keys to the application?
0 Kudos
hkausl
Beginner
747 Views

Sounds like the "Focus" is not returned to the console application. Does clicking on/in the console application window restore the keyboard keys to the application?

When I click to the window again, nothing happens, the programm is working in loop and looks, if something is in the keyboard buffer. But nothing is in the buffer. I inserted some taces written to a file, and saw, that the buffer is always empty. I also reinitalized the complete console window, no success. On XP the same program works without problems since many years. I also changed the the link of the program, so it runs in XP-Mode, also no success. The only thing I can do, is to put the quickwin menues in separate exe program an call them with a system call. But this will slow the program very much and is no nice solution.
0 Kudos
jimdempseyatthecove
Honored Contributor III
747 Views

Does a normal READ from the consol unit work after the dialog pops-up and is closed?

I do not have Windows 7 installed so I cannot test this.

Something apparently has hold of the console. You may have pending mouse requests in the keyboard buffer. Maybe these need to be sucked out using an xxxEX function call to purge the wide characters.

Jim
0 Kudos
hkausl
Beginner
747 Views

Does a normal READ from the consol unit work after the dialog pops-up and is closed?

I do not have Windows 7 installed so I cannot test this.

Something apparently has hold of the console. You may have pending mouse requests in the keyboard buffer. Maybe these need to be sucked out using an xxxEX function call to purge the wide characters.

Jim

Hello Jim,
I have no mouse events pending, because I have a callback routine for the events. The quickwin-menues work fine, but after I leave the menue, keyboard buffer and mouse events are always emtpy. I have to kill the program. It is soemthing in Windows 7, but I don't know what.
0 Kudos
Robert_M_Intel4
Employee
747 Views
Hello Jim,

We (at Intel) have been working on this for awhile, and may have a solution. Please refer to the topic 70026 in the Intel-visual-fortran-compiler-for-windows topic.

Bob Mance
0 Kudos
Reply