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. COM
  4. Unregistered objects

Unregistered objects

Scheduled Pinned Locked Moved COM
javacomsysadmindata-structurestools
2 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
    Stuart Dootson
    wrote on last edited by
    #1

    OK - not really a problem, but is there anything supremely wrong with this: I've got some COM objects I'm using as helpers to get a scripting application (using IActiveScript with a user-selectable script engine) working (specifically, I've got an IActiveScriptSite implementation and some IDispatch-based objects that I'm inserting into the scripting namespace with IActiveScript::AddNamedItem). BUT...these objects are not registered COM classes, because they're just classes in a standard Win32 executable, not a COM server executable - I create them using 'new CComObject<_class name_>' and manage them with _com_ptr_t..or is it CComPtr - can't remember which right now. It all seems to work - but is there any reason that I should be using properly registered servers & objects & things? Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'

    L 1 Reply Last reply
    0
    • S Stuart Dootson

      OK - not really a problem, but is there anything supremely wrong with this: I've got some COM objects I'm using as helpers to get a scripting application (using IActiveScript with a user-selectable script engine) working (specifically, I've got an IActiveScriptSite implementation and some IDispatch-based objects that I'm inserting into the scripting namespace with IActiveScript::AddNamedItem). BUT...these objects are not registered COM classes, because they're just classes in a standard Win32 executable, not a COM server executable - I create them using 'new CComObject<_class name_>' and manage them with _com_ptr_t..or is it CComPtr - can't remember which right now. It all seems to work - but is there any reason that I should be using properly registered servers & objects & things? Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Nope. If you're not going to use the objects outside the scope of your application, there's no reason to register them. Scot Brennecke Software Developer VC++ MVP

      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