COM Interop out-of process server NOT working in CE 5.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,
I am trying to use a simple smart device ATL COM server .EXE
(out-of-process server) w/ a CF 2.0 client. I succeed in creating the object
w/ new operator, but when I attempt to call any interface method or property
an exception is risen: no such interface. My image has DCOM enabled, and the
same COM server works greats with scripts (w/ cescripts) and any native
client (in C++ via smart pointers).
Any suggestions? I have no idea. Do you think this could be due to the lack
of marhalling in CF? If so, how to fix it?
Thank you for the help.
Kind regards,
Andrea
 
Sorry,
but I do not agree with you. WE SUCCEEDED in making CF2.0 work with
out-of-process COM server using a proxy/stub DLL that implements the CUSTOM
mashaling.
The only think we noticed is:
- foreach directive fails because IComEnumerator cannot be marshaled;
- for some reason, if I put a breakpoint in a event handler and this
breakpoit is hit, Visual Studio crashes. If I remove the breakpoit the
application works great. Inside the event handler we of course cannot reach
any graphical object but we can use Invoke.
Can you explain me these behavior?
Kind regards,
Andrea
 
Just in case we run into problem:
- is it possible to make an in-proc COM server that exports the same
interface(even event, inbound interface) as the COM.EXE server and use it in
order to overcome the CF2.0 limitation?
- are there any workarounds to do in order to make our out-of-process COM
server running?
Kind regards,
Andrea
 
Back
Top