wwUtils::RegisterDotNetComponent

Registers a .NET Component for COM operation by calling regasm /codebase.

.NET Components require a special COM registration mechanism beyond regsvr32 as they require to register to .NET framework DLL as the COM object and the component to invoke using separate keys.

o.RegisterDotNetComponent(lcDotNetDLL, lcProgId,@lcError)

Return Value

.T. or .F.

Parameters

lcDotNetDLL
The .NET DLL to register.

Pass "UNREGISTER" to unregister the component specified by lcProgId

lcProgId
One of the ProgIds of the DLL component that can be checked for if the component is registered.

@lcError
Pass in a string to be filled with error info in case an error occurs

Remarks

Must be run under a full Admin account to work as it regasm modifies global registry key.


See also:

Class wwUtils

© West Wind Technologies, 1996-2018 • Updated: 07/01/11
Comment or report problem with topic