Re: 'Permission denied' when new'ing a vc6 atl com dll from vb6 when logged into an account with in user group
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Thu, 12 May 2005 09:34:34 -0700
Check if your DLL gets loaded at all. Could be a file system
issue...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Gary" <d> wrote in message news:uEvl86mVFHA.628@xxxxxxxxxxxxxxxxxxxxxxx
> 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:
- References:
- Prev by Date: Re: Make ActiveX control print from Internet Explorer?
- Next by Date: Re: Not functional transient subscription
- Previous by thread: 'Permission denied' when new'ing a vc6 atl com dll from vb6 when logged into an account with in user group
- 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
|