Re: Migrating COM dll from ATL3 to ATL7

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Aaron" <aaron-friesen@xxxxxxxxxxx> wrote in message
news:ue6w4lYNFHA.3356@xxxxxxxxxxxxxxxxxxxx
> I have a COM dll originally developed using VC++ 6 now
> compiling under VC++ .NET. I am getting lots of C4996
> warnings that ATL::CComModule::UpdateRegistryClass has
> been deprecated.
>
> The warning stems from using the DECLARE_REGISTRY macro,
> but I cannot find how this should be replaced.

The common way is to write a registration script (.rgs file), bind it as
a resource to your executable, and refer to it with
DECLARE_REGISTRY_RESOURCEID macro. Use the wizard to generate a new
project (remember to uncheck the Attributed checkbox) and insert a
simple COM object, just to see what an .rgs file looks like.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Registering ATL object without using .rgs file
    ... I'm trying to register a simple ATL object without using the rgs file. ... My object is implemented inside a dll (the module derives from ... I tried to replace the macro DECLARE_REGISTRY_RESOURCEID that refers to ...
    (microsoft.public.vc.atl)
  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.cpp)
  • Re: macro deployment - References DLL issue
    ... I've used InnoSetup. ... I have created a macro in Excel. ... To use these dll, I must in the VBA Editor to Add References and ... would have the same effect as manually Reference the macro in the VBA ...
    (microsoft.public.excel.programming)
  • Re: macro deployment - References DLL issue
    ... I've used InnoSetup. ... I have created a macro in Excel. ... To use these dll, I must in the VBA Editor to Add References and ... would have the same effect as manually Reference the macro in the VBA ...
    (microsoft.public.excel.programming)