Error: "The parameter is incorrect"?

Add-in Express™ Support Service
That's what is more important than anything else

Error: "The parameter is incorrect"?
 
Mike Leftwich




Posts: 4
Joined: 2004-06-02
I'm trying to insert a new command in the Outlook file menu. Following the instructions in another thread, I have dropped a TadxBuiltInControl and a TadxOlExplorerCommandbar on my AddInModule, added a popup to the Controls of the command bar, set the OfficeID property of the popup to 30037 (the ID of File; New in Outlook), and added a button to the popup. When I launch Outlook, I get the following error:

TimetagAddIn error: the add-in has fired an exception.
The parameter is incorrect

I don't know which parameter is incorrect. I have not populated the Parameter property of any of the controls, and in reading about this property in the VBA help it appears that this property exists only for the third-party developer's use, much like the Tag property of Delphi. I'm wondering if the CommandBarName of the command bar or the Caption of the popup need to have some special value, or if these values are simply for display purposes.

Any help is appreciated.

Mike Leftwich
Posted 03 Jun, 2004 14:29:09 Top
Mike Leftwich




Posts: 4
Joined: 2004-06-02
Never mind. The problem was the CommandBarName, which needed to be "Menu Bar". I was passing "File".

Mike
Posted 03 Jun, 2004 15:25:38 Top