Results 1 to 8 of 8
  1. #1
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    I wrote an add-in for Outlook 2000 that seems to migrate just fine to Office XP, EXCEPT when it's running on Windows XP. In that case, the add-in just unloads itself without any message. That is, it's installed and set to load at startup, but doesn't, and if you check the box to load it in the COM Add-ins dialog, it unloads itself after you close the dialog.

    The add-in uses the ordinary libraries you would expect (see the list below, from the libraries open in the Object Browser). Nothing obvious at MS or usenet. Can anyone think of why there might be a conflict with Windows XP (not earlier versions) and any workaround that would save me from having to create multiple versions?

    Library VBA
    C:Program FilesCommon FilesMicrosoft SharedVBAVBA6VBE6.DLL
    Visual Basic For Applications

    Library stdole
    C:WINNTSystem32Stdole2.tlb
    OLE Automation

    Library Outlook
    C:Program FilesMicrosoft OfficeOfficemsoutl9.olb
    Microsoft Outlook 9.0 Object Library

    Library Office
    C:Program FilesMicrosoft OfficeOfficemso9.dll
    Microsoft Office 9.0 Object Library

    Library MSForms
    C:WINNTSystem32FM20.DLL
    Microsoft Forms 2.0 Object Library

    Library AddInDesignerObjects
    C:Program FilesCommon FilesDesignerMSADDNDR.DLL
    Microsoft Add-In Designer

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    I don't have any experience whatsoever with COM add-ins, so I may be completely off.

    I assume that Office XP is smart enough to update the references to the Microsoft Outlook 9.0 Object Library and Microsoft Office 9.0 Object Library to their 10.0 counterparts. But I note that the reference to the Microsoft Forms 2.0 Object Library points to C:WinNTSystem32. The corresponding folder in Windows XP is C:WindowsSystem32. I have had some problems (in quite different situations, it had to do with ActiveX controls in Access) where Windows XP complained about "WinNT" - apparently it doesn't always translate that automatically to "Windows".

  3. #3
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    Not having experience with Outlook, I would suspect that Hans is right about the WinNT vs Windows directories.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    On my systems it's in WinNTSystem32, for both Office XP and Office 2000.

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    Hans, that's a good theory. Unfortunately, I don't see a way to fix that in code. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> But please don't <img src=/S/hairout.gif border=0 alt=hairout width=31 height=23> working on this one; I'm going to have them set me up a shadow 2000 development system.

    Howard, did you install your own OS? Dell's install uses c:windows for XP Pro.

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    Howard, wad your XP system upgraded from Windows 2000

    I think that a clean install of Windows XP uses Windows but that an upgrade uses the existing WinNT folder.

    StuartR

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    Howard, do you have Windows XP as OS? In that case, Stuart probably has the correct explanation. If you have Windows NT or 2000 as OS, C:WinNTSystem32 is the "natural" location for the Forms 2.0 library, for Office 97, 2000 and XP.

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Migrating COM Add-ins (OL 2000-2002/Win 98-XP)

    On second thought, no, the add-ins works on Windows 98 systems, which have the OS in c:windows. Beats me. I know lots of perfectly good software has had to be updated for XP, so I'm not taking it personally. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •