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. C#
  4. Vs.Net Add-in

Vs.Net Add-in

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpgraphicswindows-admin
2 Posts 1 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.
  • T Offline
    T Offline
    Tomas Petricek
    wrote on last edited by
    #1

    Hi, I'm trying to write visual studio add-in. I want to have toolbar with my own icons so I use this: commands.AddNamedCommand(addInInstance,"MyCmd","MyCmd","Decription",true,1,ref cntG,(int)vsCommandStatus.vsCommandStatusSupported+(int)vsCommandStatus.vsCommandStatusEnabled); But this code throws NullReferenceException :(. I added SatelliteDLLName and SatelliteDLLPath keys to registry. File SatelliteDLLPath\SatelliteDLLName exists and it contains bitmap 16x16 with number 1. I've done exactly:~ same thing before and it works, but now it doesn't. <edit> I created new project with new satellite dll and now it throws: COMException: Unspecified error </edit> Thank you for any help :(( i'm only pointer to myself

    T 1 Reply Last reply
    0
    • T Tomas Petricek

      Hi, I'm trying to write visual studio add-in. I want to have toolbar with my own icons so I use this: commands.AddNamedCommand(addInInstance,"MyCmd","MyCmd","Decription",true,1,ref cntG,(int)vsCommandStatus.vsCommandStatusSupported+(int)vsCommandStatus.vsCommandStatusEnabled); But this code throws NullReferenceException :(. I added SatelliteDLLName and SatelliteDLLPath keys to registry. File SatelliteDLLPath\SatelliteDLLName exists and it contains bitmap 16x16 with number 1. I've done exactly:~ same thing before and it works, but now it doesn't. <edit> I created new project with new satellite dll and now it throws: COMException: Unspecified error </edit> Thank you for any help :(( i'm only pointer to myself

      T Offline
      T Offline
      Tomas Petricek
      wrote on last edited by
      #2

      X| :mad: I didn't placed satellite dll to 1033 folder (but i think, that first time I was doing this it works without placing dll to this folder). i'm only pointer to myself

      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