ATL C++, how to.. add custom menu items? (without crashing everyth

G

Georg-Hendrik

Is there any MS approved/certified/guaranteed reference code for adding a
(custom) menu to the default menu bar (in, e.g. Outlook) in C++(ATL)?

I've translated the first three lines of this MS-example to C++/ATL:
http://msdn2.microsoft.com/en-us/library/aa210123(office.11).aspx

Which results in this if exiting:
http://img505.imageshack.us/my.php?image=outlookbugcallstackxt5.png

The (very straightforward) code and resulting trouble (everything works fine
until exit, on which a Illegal Instruction is encountered) I've posted here:
http://www.microsoft.com/communitie...dins&mid=f3a8d022-9a55-420a-907a-ed162fe90d29

I think this problem is related:
http://www.microsoft.com/communitie..._ins&mid=7ffc1948-3e36-4980-898c-44a42637d081

The platform: VC++ 2005, ATL, Outlook 2000, Windows 2000 and higher.

Any and all suggestions are very welcome!

Kind regards,

Georg-Hendrik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top