Unregistered objects
-
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' -
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'