Win32::GUI v1.02

I'm have partitioned my program into modules:

  <name>::GUI

The program driver is in <name>:

  <name>.anonymous subroutine (the nameless thing at the end)
  &StartWindows   # &<name>::GUI::StartWindows

and <name>::GUI::StartWindows I do:

   $window->show();
   Win32::GUI::Dialog();

The window displays correctly.
All the pull down menus display correctly.
Selecting any item in a pull down menu has no effect (the event seems to be
unhandled).
Selecting the big X in the window causes the window to close and control to
return to the perl program.

The GUI did work with the same code before partitioning, all code in a
single .pl file. I have read the caution about trying to execute
Win32::GUI::Dialog() from within an object (don't do it). I don't have a
class established and I would think there's no object. I've looked at
GUI.pm and GUI.xs (the dialog call is in GUI.xs).

So, what can I do to fix the problem? The only thing that I can think of is
to put all the GUI subroutines into <name>.

On another note, I'm reworking my Minimal Perfect Hash function algorithm
(from college). It is a deterministic algorithm that returns a polynomial
hash function which yields an O(1) probe into a hash table. Any interest in
converting all of the table lookups in the *.xs files? (PS: this solves an
otherwise unsolved problem in discovering such a function.)

art


Reply via email to