Thread: ATL COM Proxy DLL difficulties (windows ce 5.0)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    6

    ATL COM Proxy DLL difficulties (windows ce 5.0)

    Hi All,

    I have managed to build an ATL Proxy DLL for my out of process com server. The server its self runs fine fine on the Window CE enviroment. Also the SAME server runs prefectly fine on windows, but when i ported the project and built the proxy DLL for Windows CE the proxy dll wont register, heres the basic outline of my proxy DLL.

    #ifndef REGISTER_PROXY_DLL
    #define REGISTER_PROXY_DLL
    #endif

    #include "Windows.h"

    //These files are generate by my ATL server project.
    #include "..\Server\MainServer_p.c"
    #include "..\Server\dlldata.c"
    #include "..\Server\MainServer.h"
    #include "..\Server\MainServer_i.c"

    Now i have the follow preprocessor options to get it to build ok.

    $(ARCHFAM);
    $(_ARCHFAM_);
    PROXY_DELEGATION;
    _WIN32_DCOM;
    WINCE;
    _WIN32_WCE=$(CEVER)

    It builds fine but fails to load using Load Library, or regsrvce on the device, with error 45a.

    If i dont have REGISTER_PROXY_DLL defined and i define my own DllRegisterServer etc, the DLL will load and register but obviously my CoCreateInstance calls fail with E_INTERFACE.

    Im thinking its some kind of dependancy missing on the device, but using dependancy walker i dont see anything thats no available.

    Heres the output when i try to register it.....

    Load module: regsvrce.exe
    Load module: aygshell.dll
    Load module: commctrl.dll
    Load module: lpcrt.dll
    Load module: rpcrt4.dll
    Load module: ole32.dll
    Load module: coredll.dll
    Load module: oleaut32.dll
    Load module: stub.dll
    Data Abort: Thread=87cae400 Proc=81cfe440 'regsvrce.exe'
    AKY=00000101 PC=01ba12d4(stub.dll+0x000012d4) RA=01ba2140(stub.dll+0x00002140) BVA=13ba36d0 FSR=0000000f
    Unload module: oleaut32.dll
    Unload module: stub.dll

    Any help would be greatly appreciated.....ive been on this for 2 days now.

    Cheers,
    Simon
    Last edited by shamelessnet; 05-25-2010 at 03:58 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM
  2. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM
  3. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  4. Windows CE
    By civix in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 08-04-2002, 01:21 AM
  5. Windows CE
    By Shiro in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-11-2002, 01:14 PM