×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

ATL COM Proxy DLL Issue :(

ATL COM Proxy DLL Issue :(

ATL COM Proxy DLL Issue :(

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close