register a dll

Hi,

when I want to register the dump.dll register filter, I got this error dump.dll is not an executable file and no registration helper is registered for this file type.

Any idea where it can come from

Thanks

Regards



Answer this question

register a dll

  • Steve02a

    I tried both, with regsvr32 I have the error message that I described in my previous message, and when I used regsvrce with platformbuilder I have the following error :

    DllRegisterServer in dump failed, and the dump.dll is unloaded. Maybe I do it the wrong way

    Thanks for your help

    Best Regards


  • TimGL

    Hello ksoft

    Can you please let me know how you have registered the dll manually

    Thanks


  • Rashar

    Use depends.exe from the desktop SDK to see the device dependencies. One of the possible problems is that since you built this in PB, your test platform might include coredll functions not available on your actual device. I would suggest writing a very small test application that does something like this:

    int _tmain(int argc, _TCHAR* argv[])
    {
    HMODULE hLib = LoadLibrary(argv[1]);
    if ( hLib )
    {
    FARPROC pfnRegSvr = GetProcAddress(hLib, L"DllRegisterServer");
    if ( pfnRegSvr )
    {
    HRESULT hr = pfnRegSvr();
    hr = 0;
    }

    }
    return 0;
    }

    Run it passing the path to your filter as a parameter and see what is the HRESULT from DllRegisterServer



  • F.Costa

    thanks a lot for your help, finally I managed to register my dll manually.
  • Scott Allison

    Hi,

    I added the registry keys in the project.reg file, follow the nice indications given in the following link (Layout of the Registry Keys section) http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcedshow/html/_dxce_dshow_how_to_register_directshow_filters.asp


  • Rattlerr

    How did you go about registering the dll Did you use regsvrce

  • Smriti

    Is that a DirectShow sample filter or your own code Did you build it using PB or otherwise Do you get an error code from regsvrce

  • Ben Vanik

    This is a Directshow sample filter and I didn't build it using PB. I didn't get an error code from regsvrce.
  • DavidHarper

    the sample come from PB.
  • Lokke

    Where did the sample come from PB or desktop SDK

  • register a dll