Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Key pressing with MINGW and Windows XP does not work
icon5.gif  Key pressing with MINGW and Windows XP does not work [message #35611] Mon, 05 March 2012 23:53 Go to next message
Small_Dwarf is currently offline  Small_Dwarf
Messages: 8
Registered: July 2011
Promising Member
Hello,

I have a problem concerning
virtual bool  Key(dword key, int count)
and I didn't found a solution via searching this forum or http://www.ultimatepp.org/src$CtrlCore$Ctrl$en-us.html.


With Ubuntu ang gcc I can step through this method when a key is pressed, but with MINGW and Windows XP I cannot reach this method by pressing a key.
 virtual bool   WKey(dword key, int count)
doesn't work either.

Can anybody help me? Confused
THANX in advance Smile

[Updated on: Mon, 05 March 2012 23:56]

Report message to a moderator

Re: Key pressing with MINGW and Windows XP does not work [message #35613 is a reply to message #35611] Tue, 06 March 2012 09:53 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi Small_Dwarf,

Do you mean the virtual function is not implemented so you did not get any key value when the user presses any key ?

virtual bool   WKey(dword key, int count)


You have a typo in the function wording, it should be Key not WKey as follows:

virtual bool Key(dword key, int count)


Regards

Biobytes


icon3.gif  Re: Key pressing with MINGW and Windows XP does not work [message #35653 is a reply to message #35613] Fri, 09 March 2012 23:44 Go to previous message
Small_Dwarf is currently offline  Small_Dwarf
Messages: 8
Registered: July 2011
Promising Member
Thank you BioBytes,

I have found the problem:
I think fhe debugger gdb itself must have a bug or is not configured correctly.
No matter where I set an breakpoint, execution never stopped, even in functions which definitely have been executed (I could see them in action by the output the program produces).

I don't need any help now, because I regularly write and debug on Linux where the debugger works correctly.

Thanks!

Previous Topic: Change images
Next Topic: array : minimum value
Goto Forum:
  


Current Time: Fri Apr 19 21:59:43 CEST 2024

Total time taken to generate the page: 0.05696 seconds