Registaration of activex failed in wince5.0

hi I have written an activex which i need to register on Pocket PC 2005 emulator. I am using Visual Studio 2005 beta as the development environment. I used the regsvrce.exe (the arm processor version) to register the activex. but it just says dllregisterserver failed...

can anyone give me any pointers in this regard

thanks in advance!!!


Answer this question

Registaration of activex failed in wince5.0

  • JonathanMcCracken

    hi Avinash

    i have tried doing that..i tried to deploy all the required dlls in the \windows, and deployed the activex also in \windows. but still it says dllregisterserver failed, the code for registration is simple

    STDAPI DllRegisterServer()
    {
    //LoadOLEAut32();

    return AMovieDllRegisterServer2( TRUE );
    }

    thanks
    siddhartha

  • CRChambers

    Hi,
    Did you try to place a message box in the function and see if it is getting hit at all
    Thanks


  • 808numbers

    hi

    i tried to do it .. its getting hit and failing too... i tried using AMovieDllRegisterServer() instead of AMovieDllRegisterServer2(Bool) and that too does not work... anything else that i need to check,,,
    thanks
    siddhartha



  • kopiko23

    Hi,

    Given that the registation entry point is getting hit it's not one of the commonly reported problems. The problem is specific to the way you are implementing the control and the Drirect show registation requirements. Probably this may be of help. http://msdn.microsoft.com/library/default.asp url=/library/en-us/directshow/htm/implementdllregisterserver.asp.

    Thanks



  • Kang Su Gatlin

    Hi Avinash

    I didnt use any entry point for the activex . i tried using DllEntryPoint@12 it is giving linking error. Do we have to use something different for wince

  • Nelson Pinto

    Hi,

    Registration fails in case you don't have the imported dlls in the system path, \windows, or the same directory. Do a dumpbin on the ocx/dll to see the what all the controls links to and whether it is deployed to the device or not.

    Thanks

    Avinash



  • MJatAflac

    Hi,

    I didn't mean the entry point setting in the linker section. What I meant was that DllRegisterServer is getting hit as expected in the registration process, so I think things should be fine as far dependencies are concerened. You need to look out for the reason why AMovieDllRegisterServer2(Bool) call is failing.

    The best way shall be to place a message box and in the DllRegisterServer method and once it pops up the dialog. Attach the debugger to the regsvrce.exe. Load the pdb and see what is bad. Atleat you can try the GetLastEror if the functions supports that.

    Thanks



  • Registaration of activex failed in wince5.0