shamelessnet
Programmer
Hi All,
I have managed to build an ATL Proxy DLL for my out of process com server, which im running file on the Window CE enviroment. The SAME server runs prefectly fine on windows, but when i ported the project and built the proxy DLL for Windows CE the 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
I have managed to build an ATL Proxy DLL for my out of process com server, which im running file on the Window CE enviroment. The SAME server runs prefectly fine on windows, but when i ported the project and built the proxy DLL for Windows CE the 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