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. .NET (Core and Framework)
  4. VSNet Addin Question

VSNet Addin Question

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
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.
  • S Offline
    S Offline
    Steve Hopkins
    wrote on last edited by
    #1

    Does anyone know the value for the second parameter that is required when calling Documents.Open from the VSNet Object model? MS have made the second parameter a String to describe the Kind of document being opened (Enum anyone?) but I can't find any documentation on what the value should be. Empty string and null string both cause a " The Parameter Is Incorrect" exception to be thrown. :wtf: if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk)) { // I aint no pUnk bitch! }

    S 1 Reply Last reply
    0
    • S Steve Hopkins

      Does anyone know the value for the second parameter that is required when calling Documents.Open from the VSNet Object model? MS have made the second parameter a String to describe the Kind of document being opened (Enum anyone?) but I can't find any documentation on what the value should be. Empty string and null string both cause a " The Parameter Is Incorrect" exception to be thrown. :wtf: if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk)) { // I aint no pUnk bitch! }

      S Offline
      S Offline
      Steve Hopkins
      wrote on last edited by
      #2

      Duh. Tried "Text" and it worked. Anyone got any common sense they could lend me? Steve. if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk)) { // I aint no pUnk bitch! }

      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