General discussion

  • Creator
    Topic
  • #2306533

    how to retrieve menus and submenus info?

    Locked

    by adeshy ·

    Hi,

    I am facing the problem in retrieving of the Menus and subMenus information for some Applicaitons like MS Excel,MS Word,MS Powerpoint and JMP IN etc.,

    I am getting the below errors:
    (1) The instruction at “0x——–” referenced memory at”ox———“. The memory could not be “read”.
    click on OK to terminate the program
    click on CANCEL to debug the program
    when the application is MDI and in maximized window state.

    (2) some times I did not retrieve any information.

    The code i used to construct tree structure :
    *********************************************

    treeview control
    APIs used:

    GetMenu()
    GetMenuItemCount()
    GetMenuItemInfo()

    U will be appreciated if u could figure out the solution for my problem.
    Thanks
    Adesh.

All Comments