![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I developed a com Add-in for Outlook 2003. I copied it at user profile/addins folder. What do I need to do so this add in will load automatically when Outlook starts? Thanks, Goran |
Ads |
#2
|
|||
|
|||
![]()
Assuming it actually handles the Extensibility events then it needs to be
registered. See http://support.microsoft.com/kb/302896 for some information on that. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Hi, I developed a com Add-in for Outlook 2003. I copied it at user profile/addins folder. What do I need to do so this add in will load automatically when Outlook starts? Thanks, Goran |
#3
|
|||
|
|||
![]()
Thanks Ken.
Goran "Ken Slovak - [MVP - Outlook]" wrote: Assuming it actually handles the Extensibility events then it needs to be registered. See http://support.microsoft.com/kb/302896 for some information on that. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Hi, I developed a com Add-in for Outlook 2003. I copied it at user profile/addins folder. What do I need to do so this add in will load automatically when Outlook starts? Thanks, Goran |
#4
|
|||
|
|||
![]()
Ken,
I try everything and cannot get my addin to load and show in the toolbar when Outlook starts. I have to do it manually and then is OK. I set 'Initial Load Behavior' to 3. I copied the addin dll to my user profile under Application Data/microsoft/AddInns. When I start the outlook the add in is not there. I have to go manually to Tools/Options/Other/ Advanced options/COM Addins and browse for my dll there and then it will load it. Please tell me if there is another way to install it so it will load and show when Outlook starts. Can I use VB 'PAckage & deployment' tool to package it, or any other tool? Thanks for you help as always. Goran "goran" wrote: Thanks Ken. Goran "Ken Slovak - [MVP - Outlook]" wrote: Assuming it actually handles the Extensibility events then it needs to be registered. See http://support.microsoft.com/kb/302896 for some information on that. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Hi, I developed a com Add-in for Outlook 2003. I copied it at user profile/addins folder. What do I need to do so this add in will load automatically when Outlook starts? Thanks, Goran |
#5
|
|||
|
|||
![]()
Normally a COM addin gets installed somewhere under Program Files, although
that's not a requirement. Usually that AddIns folder is used for Exchange addins (ECE files written using Extended MAPI code). Outlook will recognize any COM addin, no matter where it's installed, if it's registered correctly. You should not have to browse for the addin, it should show up in the COM AddIns dialog if it was registered in the HKCU hive of the registry and the addin dll was registered also. If you used a VB6 Designer then registering the addin dll will take care of writing the keys to the registry in HKCU for you. How you install is up to you. The P&D Wizard works but it creates large installers that include lots of stuff that you really don't need to deploy, like the VB6 runtime (msvbvm6.dll) and so on. Those packages also don't give you the flexibility that a Windows Installer package provides. You can use Windows Installer, a commercial package such as InstallShield or Wise, or even an installation bat file. All you really need to do is put the files where you want and run regsvr32 on the addin dll. If you look in the registry at HKCU\Software\Microsoft\Office\Outlook\Addins do you see your addin listed? Does it have the correct registry keys as listed in that link I provided? If not that's the problem and you should read the article at that link. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Ken, I try everything and cannot get my addin to load and show in the toolbar when Outlook starts. I have to do it manually and then is OK. I set 'Initial Load Behavior' to 3. I copied the addin dll to my user profile under Application Data/microsoft/AddInns. When I start the outlook the add in is not there. I have to go manually to Tools/Options/Other/ Advanced options/COM Addins and browse for my dll there and then it will load it. Please tell me if there is another way to install it so it will load and show when Outlook starts. Can I use VB 'PAckage & deployment' tool to package it, or any other tool? Thanks for you help as always. Goran |
#6
|
|||
|
|||
![]()
I will try P & D wizard then.
Thanks a lot Ken, Goran "goran" wrote: Thanks Ken. Goran "Ken Slovak - [MVP - Outlook]" wrote: Assuming it actually handles the Extensibility events then it needs to be registered. See http://support.microsoft.com/kb/302896 for some information on that. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Hi, I developed a com Add-in for Outlook 2003. I copied it at user profile/addins folder. What do I need to do so this add in will load automatically when Outlook starts? Thanks, Goran |
#7
|
|||
|
|||
![]()
Ken,
Sorry to bother you again, but this is driving me crazy. My Add-in adds a dropdowncombo on every mail inspector toolbar. When user selects something from dropdowncombo, new modal form dialog opens on the top of the inspector. I used SetwindowPos to set this small dialog on the top and also used SetForegroundWindow for inspector window. However when I click on the modal form Inspector window gets minimized and whatever window is under becomes foreground. When I close modal dialog form, Inspector gets active and it shows. I get hWnd of the inspector on Inspector activate event and use that handle to set inspector as foreground window inn modal form activate event. No matter what I do inspector window flashes and gets minimized when I click on anything on modal form. I need the inspector to stay in place until modal form is closed. Any ideas how to fix this? This only happens when email editor is WordMail and when dll compiled, in design mode everything is OK. Thanks in advance, Goran "Ken Slovak - [MVP - Outlook]" wrote: Normally a COM addin gets installed somewhere under Program Files, although that's not a requirement. Usually that AddIns folder is used for Exchange addins (ECE files written using Extended MAPI code). Outlook will recognize any COM addin, no matter where it's installed, if it's registered correctly. You should not have to browse for the addin, it should show up in the COM AddIns dialog if it was registered in the HKCU hive of the registry and the addin dll was registered also. If you used a VB6 Designer then registering the addin dll will take care of writing the keys to the registry in HKCU for you. How you install is up to you. The P&D Wizard works but it creates large installers that include lots of stuff that you really don't need to deploy, like the VB6 runtime (msvbvm6.dll) and so on. Those packages also don't give you the flexibility that a Windows Installer package provides. You can use Windows Installer, a commercial package such as InstallShield or Wise, or even an installation bat file. All you really need to do is put the files where you want and run regsvr32 on the addin dll. If you look in the registry at HKCU\Software\Microsoft\Office\Outlook\Addins do you see your addin listed? Does it have the correct registry keys as listed in that link I provided? If not that's the problem and you should read the article at that link. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Ken, I try everything and cannot get my addin to load and show in the toolbar when Outlook starts. I have to do it manually and then is OK. I set 'Initial Load Behavior' to 3. I copied the addin dll to my user profile under Application Data/microsoft/AddInns. When I start the outlook the add in is not there. I have to go manually to Tools/Options/Other/ Advanced options/COM Addins and browse for my dll there and then it will load it. Please tell me if there is another way to install it so it will load and show when Outlook starts. Can I use VB 'PAckage & deployment' tool to package it, or any other tool? Thanks for you help as always. Goran |
#8
|
|||
|
|||
![]()
I've never seen or heard of that but it's most likely that you're getting
the hWnd for an incorrect window. Get the hWnd and then use Spy++ to see what window handle you're actually getting. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Ken, Sorry to bother you again, but this is driving me crazy. My Add-in adds a dropdowncombo on every mail inspector toolbar. When user selects something from dropdowncombo, new modal form dialog opens on the top of the inspector. I used SetwindowPos to set this small dialog on the top and also used SetForegroundWindow for inspector window. However when I click on the modal form Inspector window gets minimized and whatever window is under becomes foreground. When I close modal dialog form, Inspector gets active and it shows. I get hWnd of the inspector on Inspector activate event and use that handle to set inspector as foreground window inn modal form activate event. No matter what I do inspector window flashes and gets minimized when I click on anything on modal form. I need the inspector to stay in place until modal form is closed. Any ideas how to fix this? This only happens when email editor is WordMail and when dll compiled, in design mode everything is OK. Thanks in advance, Goran |
#9
|
|||
|
|||
![]()
I checked in Spy++. I have correct OpusApp window handle.I can't believe it
neither. I have this on dropdown change event that suppose to launch dialog form: SetWindowPos(frmDialog.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE) frmDialog.Show 1 then on Inspector_Activate I have: hw = FindWindow("OpusApp", vbNullString) this is where I capture Inspector Handle and on dialog form Activate event I try to set Inspector as foreground window like: Form1_Activate() SetForegroundWindow(hw) end sub And when I click dialog form Inspector window which is foreground window gets minimized. I even tried SetActiveWindow(hw), ShowWindow hw, SW_SHOWACTIVATE etc to keep Inspector from dissapearing. I event put code in Inspector_Deactivate event to check if DialogForm is visible, If it is I call inspector.activate method. That does help sometimes but not always. Any ideas what should I try? Thanks "Ken Slovak - [MVP - Outlook]" wrote: I've never seen or heard of that but it's most likely that you're getting the hWnd for an incorrect window. Get the hWnd and then use Spy++ to see what window handle you're actually getting. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... Ken, Sorry to bother you again, but this is driving me crazy. My Add-in adds a dropdowncombo on every mail inspector toolbar. When user selects something from dropdowncombo, new modal form dialog opens on the top of the inspector. I used SetwindowPos to set this small dialog on the top and also used SetForegroundWindow for inspector window. However when I click on the modal form Inspector window gets minimized and whatever window is under becomes foreground. When I close modal dialog form, Inspector gets active and it shows. I get hWnd of the inspector on Inspector activate event and use that handle to set inspector as foreground window inn modal form activate event. No matter what I do inspector window flashes and gets minimized when I click on anything on modal form. I need the inspector to stay in place until modal form is closed. Any ideas how to fix this? This only happens when email editor is WordMail and when dll compiled, in design mode everything is OK. Thanks in advance, Goran |
#10
|
|||
|
|||
![]()
You need to set the z-order of the Inspector window before you set the form
dialog's z-order. I usually use SetWindowLong to make the Inspector window parented by the main Outlook window, then I make the dialog window a child of the Inspector window. I try to avoid SetWindowPos() with HWND_TOPMOST because if the user clicks in a completely different application the dialog using HWND_TOPMOST still remains on top and that tends to completely annoy users. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "goran" wrote in message ... I checked in Spy++. I have correct OpusApp window handle.I can't believe it neither. I have this on dropdown change event that suppose to launch dialog form: SetWindowPos(frmDialog.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE) frmDialog.Show 1 then on Inspector_Activate I have: hw = FindWindow("OpusApp", vbNullString) this is where I capture Inspector Handle and on dialog form Activate event I try to set Inspector as foreground window like: Form1_Activate() SetForegroundWindow(hw) end sub And when I click dialog form Inspector window which is foreground window gets minimized. I even tried SetActiveWindow(hw), ShowWindow hw, SW_SHOWACTIVATE etc to keep Inspector from dissapearing. I event put code in Inspector_Deactivate event to check if DialogForm is visible, If it is I call inspector.activate method. That does help sometimes but not always. Any ideas what should I try? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 startup | chemnut94707 | Outlook - Using Contacts | 1 | May 6th 06 12:13 AM |
New Outlook 2003 Install Won't Load | ajamrozek | Outlook - Installation | 3 | April 16th 06 08:29 PM |
Outlook 2003 will not load. | DrStuart | Outlook - Installation | 3 | February 1st 06 02:51 AM |
outlook 2003 won't load | MN24FAN | Outlook - Installation | 2 | January 30th 06 05:16 PM |
Outlook 2003: Add-In doesn't load any more | outl00kalium | Add-ins for Outlook | 0 | January 8th 06 02:46 PM |