How to register COM object on Windows Mobile device?

Ok so I know on the desktop you can create a COM component and register it so it's in the registry and sorta globally visible to all applications - but how would one do it on Windows Mobile

I got Platform Builder and Visual Studio 2005 if anyone wants to know what I'm working with here.

I need to access the COM component remotely, so I'd need to do this for that to work.


Answer this question

How to register COM object on Windows Mobile device?

  • balusmca

    I dunno if this is the kinda stuff you wanted, but this artivle is really handy.

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnce50/html/implement_network_service.asp

    To programatically register a DLL, you can use RegisterService or ActivateService. I had issues with ActivateService (it called Init and Deinit in a strange fashion) so I just stuck to RegisterService. Look up RegisterService or ActivateService and you'll find more info on them, including the rest of the service.exe type stuff.

    Hope that helped.


  • AlexVallat

    Windows Media Player Mobile does not support DSP plugins. In fact the only type of plugin it supports are UI plugins and those must be UI-less (I know it sounds strange, but that's the way it is)

  • Alvin Kuiper

    Hi,

    I went through your conversation.I have also stucked up here.Actually i am making DSP Plugin for Windows Mobile.

    Same Plugin is working fine on Desktop media player. and it registers automatically. but on mobile emulator i can deploy the .dll file but i am not getting the effects. so if you have done ftuff like that then please tell me.

    Thank you in advance.

    Hoping for a positive response.

    Amit P Shah.


  • kblackwell

    If you have platform builder, there is a tool called regsvrce.

    See item 13. here http://msdn.microsoft.com/library/default.asp url=/library/en-us/dncenet/html/buildxml.asp

    That assumes that your com DLL implements DllRegisterServer(). Any ATL project will have this done for you. If you have a vanilla Win32 project check out the DvorakSip sample in WM5 SDK



  • FSchmid

    Let me clarify that I've never manually or programatically registered a COM dll before (desktop or mobile). Does anyone know how to manually or programatically register a dll for desktop Is setting registry values all I have to do

    If someone can regurgitate the process for desktop I can try that on mobile and see if it works.

    Thanks!

  • Somsong

    Awesome! I'll try that out and come back with notes/problems. Thanks Alex and Kuntushi :)

  • How to register COM object on Windows Mobile device?