Re: COM question



You've managed to stretch my knowledge of COM to the breaking point. But I
think what may be happening here is that CE doesn't have the universal
marshaller (all versions) and so it can't marshall this type automatically.
I *believe* if you put this into an IDL file and rely on the MIDL generated
proxy/stub routines it should be able to work for you.

http://www.codeproject.com/netcf/WindowsCE_DCOM.asp has a good article on
this.

Also note in CE3 we don't have the idisproxy.lib, which we added CE4 so that
Visual Basic could communicate remotely to CE device. I don't think it
should be an impact here but a heads up. idisproxy is brought in
automatically whenever you have SYSGEN_DCOM and oleautomation.

--
John Spaith
Senior Software Design Engineer
Windows CE Networking
Microsoft Corporation

http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2007 Microsoft Corporation. All rights
reserved.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%23jKiNFvnHHA.3968@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I'm doing some work with a COM object which is running on Windows CE
devices and which is used, via DCOM, from other devices, PCs, generally,
on the network. Most of what I'm doing works, but the object has a method
that returns an IEnumString interface pointer to the caller and that
doesn't work. There is an Interfaces entry for it in the registry on the
device, so it seems like it should be OK. Is there a known limitation on
marshaling that interface or something? Might I have left something out
of the OS that would affect this (it's a DCOM build, headless).

To this point, I've only found the problem on CE3 devices, but will test
4.2 and 5.0 soon.

Thanks,
Paul T.




.



Relevant Pages

  • Re: Oleaut32.dll needs/doesnt need type library??
    ... 1-)"The third option is to use the universal marshaller oleaut32.dll. ... library of the invoked interface, read the type information in it, ... of IDispatch method invocations. ... oleaut32 knows how to marshal IDispatch. ...
    (microsoft.public.vc.atl)
  • Re: Cluster IP address resource could not create required TCP/IP
    ... Is there a specific component under DCOM that should be active? ... compare from node A to node B but is there a specific entry that I should ... >> Cluster IP Address resource 'xxx IP' could not create the required TCP/IP ... >> to create new IP interface, ...
    (microsoft.public.windows.server.clustering)
  • Re: Role Based Security
    ... I decided to go to a RIGHTS based model. ... The below interface has met my needs, ... bool IsInAnyRole; ... ISecurityRoleCollection AllRoles //and ISecurityRole is just a Guid ...
    (microsoft.public.dotnet.framework)
  • Re: DCOM to DCOM call fails with 80040200
    ... the interface being called. ... > Fails only when called from another DCOM! ... >> Microsoft MVP, MCSD ... >>> STDMETHODIMP CDCOMSchStoreXML::UpdateXML(BSTR bstrSessionId, BSTR ...
    (microsoft.public.vc.atl)
  • Re: DOMDocument
    ... Microsoft Corporation ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > Could you elaborate if in fact the interface is available. ... >> John Spaith ...
    (microsoft.public.windowsce.embedded)