At what time to you call RegisterIDESubMenu?
It should be in the "register" procedure. (Which is called at some time by the IDE)
(You have that in your original example... but just checking)
If you put it into some initialization section, it likely wont work.
------- EDIT:
Or well, double check it.
-Sa