Problem Solved

I am trying to build the MFT_Grayscale sample project. I simply copied the project from the SDK tree into my personal code development tree and made no changes to the code. It compiles fine however when I try to register the built dll with regsvr32.exe I get the following error message:

The module "C:\code32\vista\MFT_Grayscale...\MFT_Grayscale.dll" was loaded but the call to DllRegisterServer failed with error code 0x80070005.

I am using Vista Beta 2 and Vista SDK beta 2 with Visual Studio 2005.

Does anyone have any suggestions

Thanks,
Mark



Answer this question

Problem Solved

  • John Wesley Harding

    But, how can this run as administrator, when user account control is truned on


  • Gravy

    Hi Tony

    Thanks. It was a good suggestion for manually registering a DLL.

    However, normally we need to make this automatically done, through web plugin.

    We wrapped our dll into a cab file, by including an atl file.

    According to my experience the old style ATL syntax does not work for Vista.

    Because the same thing works on XP but not on Vista.

    Do you have a suggestion

    Note: our cab is digitally signed with Verisign certificate.

    Below is the content of my atl file:

    ;INF file for SensoryInstall.dll
    [Add.Code]
    SensoryInstall.dll=SensoryInstall.dll


    [SensoryInstall.dll]
    file=thiscab
    clsid={57D3BDD6-64CB-4385-91AB-8E1EC21797D5}
    RegisterServer=yes
    FileVersion=1,0,0,3
    DestDir=10



  • manick312938

    I was able to fix the problem. I turned off UAC (User Account Control) and it now registers fine.
  • Tryin2Bgood

    more easy way - set "Run as Administrator" property of regsvr32.exe


  • Problem Solved