Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Addin development - don't think it's possible...

Addin development - don't think it's possible...

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiocomhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SimonS
    wrote on last edited by
    #1

    I've been trying to write an addin in Visual Studio 2005 and am having endless problems - hopefully someone can tell me I'm not alone. It's a very basic addin and I'm using the builtin template as a starting point. Problems include: - breakpoints not being hit - addin not loading for some reason, but then loads again later, and then stop again... - previous addin attempts still load even though I think I've deleted them out of the addin folder I'm on the verge of giving up. All help on the internet on this point is not very helpful... Oh, and don't even get me started on the horrific object model you need to work with... S

    Cheers, Simon > company:: Broken Keyboards Software > blog:: brokenkeyboards > skype :: SimonMStewart > CV :: PDF

    M 1 Reply Last reply
    0
    • S SimonS

      I've been trying to write an addin in Visual Studio 2005 and am having endless problems - hopefully someone can tell me I'm not alone. It's a very basic addin and I'm using the builtin template as a starting point. Problems include: - breakpoints not being hit - addin not loading for some reason, but then loads again later, and then stop again... - previous addin attempts still load even though I think I've deleted them out of the addin folder I'm on the verge of giving up. All help on the internet on this point is not very helpful... Oh, and don't even get me started on the horrific object model you need to work with... S

      Cheers, Simon > company:: Broken Keyboards Software > blog:: brokenkeyboards > skype :: SimonMStewart > CV :: PDF

      M Offline
      M Offline
      Mark Churchill
      wrote on last edited by
      #2

      Hi Simon A major source of confusion is the flags that are passed to your "connect" class. IIRC the addin template sets the OnConnection handler up to handle ext_ConnectMode.ext_cm_UISetup. This is only called once in the entire lifetime of your addin. Also you will find things like your menu items being dropped without warning, it can be quite a mess. One solution is to handle both ext_cm_Startup and ext_cm_AfterStartup and recreate your menu items at that stage - its probably acceptable if you only have a few items. You need to make sure you *dont* have your "... - For Testing" addin set to load on startup, as it will be loaded by your "development" visual studio instance, and it will break the build process. Also, get familiar with running:

      devenv /resetaddin Complete.Name.Of.Your.Connect.Class

      for use when things really get pear-shaped. Regarding the horrible object model - remember that you will need to handle "ArgumentOutOfRangeException" when accessing an indexed collection as they won't return null (technical reason is the COM interop marshalling an E_ code back becomes an exception back in managed land). Hrmmm. Theres lots of caveats actually, maybe I'll write an article when I get around to it - you are right that theres not much info out there. We had a lot of "fun" developing the Diamond Binding addin ;) Hope that helps,

      Mark Churchill Director Dunn & Churchill

      S 1 Reply Last reply
      0
      • M Mark Churchill

        Hi Simon A major source of confusion is the flags that are passed to your "connect" class. IIRC the addin template sets the OnConnection handler up to handle ext_ConnectMode.ext_cm_UISetup. This is only called once in the entire lifetime of your addin. Also you will find things like your menu items being dropped without warning, it can be quite a mess. One solution is to handle both ext_cm_Startup and ext_cm_AfterStartup and recreate your menu items at that stage - its probably acceptable if you only have a few items. You need to make sure you *dont* have your "... - For Testing" addin set to load on startup, as it will be loaded by your "development" visual studio instance, and it will break the build process. Also, get familiar with running:

        devenv /resetaddin Complete.Name.Of.Your.Connect.Class

        for use when things really get pear-shaped. Regarding the horrible object model - remember that you will need to handle "ArgumentOutOfRangeException" when accessing an indexed collection as they won't return null (technical reason is the COM interop marshalling an E_ code back becomes an exception back in managed land). Hrmmm. Theres lots of caveats actually, maybe I'll write an article when I get around to it - you are right that theres not much info out there. We had a lot of "fun" developing the Diamond Binding addin ;) Hope that helps,

        Mark Churchill Director Dunn & Churchill

        S Offline
        S Offline
        SimonS
        wrote on last edited by
        #3

        Mark Churchill wrote:

        maybe I'll write an article when I get around to it

        Go ahead mate, I'll read it for sure.! Thanks for the input.

        Cheers, Simon > company:: Broken Keyboards Software > blog:: brokenkeyboards > skype :: SimonMStewart > CV :: PDF

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups