- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - jimdempseyatthecove
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - jimdempseyatthecove
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page