|go ahead... be a heretic|
Re^5: How to get a window's menu as a Win32::GUI::Menu object?by Anonymous Monk
|on Feb 17, 2013 at 10:13 UTC||Need Help??|
Which is why I don't understand why it's relevant. How does it help my solve the problem?
I don't know, but it certainly answers the question you asked , and I quote
returns a menu HANDLE, not an object reference. This seems to be more or less useless -- unless there's a way to turn the handle into an object?
So there you go :) smile (:
You posted a link to the tutorial. ...
:) I linked specifically to an example of the functional interface, how to use handles without turning them into objects
:) Sure its got nothing to do with menus , but then it wasn't supposed to
Fair enough: CODE
Employing Basic debugging checklist I get
so what you want to do is skip GetMenu and either use global variables , or store $Menu inside $WinMain
Useful regarding memory management, Tutorials: Variable Scoping in Perl: the basics, Coping with Scoping , Mini-Tutorial: Perl's Memory Management, Lexical scoping like a fox, Read this if you want to cut your development time in half!
I'll be back with more:) maybe