'Permission denied' when new'ing a vc6 atl com dll from vb6 when logged into an account with in user group
- From: "Gary" <d>
- Date: Wed, 11 May 2005 17:16:41 -0400
When
Set mobjRplMgr = New RPLMGRLib.RplMgr
executes in VB6 I get 'Run-time error '70': Permission Denied'
Part of the definition of the class that implements the COM object is
class ATL_NO_VTABLE CRplMgr :
public CComObjectRootEx<CComMultiThreadModel>,
public CComCoClass<CRplMgr, &CLSID_RplMgr>,
public IDispatchImpl<IRplMgr, &IID_IRplMgr, &LIBID_RPLMGRLib>
{
DECLARE_REGISTRY_RESOURCEID(IDR_RPLMGR)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CRplMgr)
COM_INTERFACE_ENTRY(IRplMgr)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
}
The 'Permission denied' error never occurs when user is logged in to an
account in the admin or poweruser group.
The error only occurs on *some* machines when user is logged in to an
account in the user group.
On other machines the error does *not* occur even though user is only a
member of the user group.
I cannot determine the significant difference between machines on which the
error occurs and those on which it doesn't.
On machines where the error *does* occur the error can be avoided by using a
debug version of the vc6 atl com dll.
The error occurs before DLLMain is called and before the constructor of the
class partly defined above can execute.
Maybe it occurs in the constructor of CComModule or some other startup code.
Help!
.
- Follow-Ups:
- Prev by Date: Make ActiveX control print from Internet Explorer?
- Next by Date: Not functional transient subscription
- Previous by thread: Make ActiveX control print from Internet Explorer?
- Next by thread: Re: 'Permission denied' when new'ing a vc6 atl com dll from vb6 when logged into an account with in user group
- Index(es):
Relevant Pages
|