Questions:
1. Is it possible to create an ActiveX.dll compile it on a remove machine
and register it in COM+ without having to copy the DLL locally in the
package and deploy
2. If yes, how?
Thanks.
john
You can use the CreateObject() function to create a remote instance of an
object. You can use dcomcnfg.exe to set the name of the remote machine, or
it can be specified as the 2nd argument to the call, e.g.
Set oDear = CreateObject (ProgID, MachineName)
You can use late binding in your code (i.e. Dim oDear As Object), or you can
reference an appropriate type library (usually the DLL)
Either way, the DLL/type library has to be registered locally or you'll get
"Class not registered locally" errors. COM uses this local information to
resolve the ProgID and then marshall the remote object.
A common problem during development, where 'project' compatibility is the
norm rather than 'binary' compatibility, is that the DLL is registered on
the two machines with different IDs. You then get the very generic error
"ActiveX component can't create object". This specific situation is usually
identifiable because it generates event-log entries on the "client" machine.
Tony Proctor
"John Wright" <rileyx...@hotmail.com> wrote in message
news:Owx$LseuDH...@TK2MSFTNGP09.phx.gbl...