Re: ATL dual interface question, A very very strange question

Tech-Archive recommends: Speed Up your PC by fixing your registry



Are you running under Vista?

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

"Daman Chen" <DamanChen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:498D3C44-8CCC-4737-901C-3C5AD848C215@xxxxxxxxxxxxxxxx
NO,I log in the windows as a administrator.and I made another project in
the
visual studio 2003 and visual 6.0, the question same as VS 2005.So i think
maybe there are some error in the system file.

"Nghia Nguyen" wrote:

Do you happen to run as a non-administrator user?
ATL simple COM object code generated from the ATL wizzard should work
without any change. Perhaps, create another project and try again.

"Daman Chen" wrote:


Hi all,

I have a question want to ask yours,

I use ATL wizard to create a COM project. when I add a dual Interface
to my
project,I got the following error

"error PRJ0050: Failed to register output. Please ensure you have the
appropriate permissions to modify the registry".

I am sure I have the administrator permissions.

after I made many test, I found if i removed the "dual" property in the
.idl
file.it will build successed. as you known. the "dual" property used to
declare a dual interface.as following:

[
object,

uuid(EF371B9B-CDCE-4D2F-8ACF-8EFDC0A4555E),
dual, // remove this, it will
successed.??????
nonextensible,
helpstring("IDamanTestAA1 Interface"),
pointer_default(unique)
]
interface IDamanTestAA1 : IDispatch

{
};

I don't known where i am wrong. Can you help me?

I have restalled the VS2005,the qustion exist still.Now I only left to
reinstall the system.



Daman Chen



.



Relevant Pages

  • Re: Unified Event Model and support for multithreaded usage
    ... No, it's not this, and BTW, what kind of events did you expect in ... ATL has nothing to do with .NET - it's all native. ... Microsoft MVP, MCSD ... of Visual Studio" ...
    (microsoft.public.vc.atl)
  • Re: atlcomcli.h
    ... ATL 2.0 is free and it compiles with other compilers as it doesn't ... Microsoft MVP, MCSD ... > Visual Studio, so you can't really use ATL without Visual Studio. ... > that it's unlikely to compile with any other compiler. ...
    (microsoft.public.vc.atl)
  • Re: ocx creation
    ... Microsoft MVP, MCSD ... So you can use MFC for skipping to read books on ATL. ...
    (microsoft.public.win32.programmer.ole)
  • Re: Changing to MinDependency introduces *crazy* errors ...
    ... CString instead, but I'm not sure if it's suitable either... ... > I'm building a COM ATL dll, that uses MFC to make a dialog. ... > class template invalid as template argument for template parameter ...
    (microsoft.public.vc.atl)
  • Re: ocx in a service
    ... ATL can happily host ActiveX Controls too. ... Microsoft MVP, MCSD ...
    (microsoft.public.vc.atl)