Problem with DCOM support on PPC

From: Dr. Wolgales (Wolgales_at_t-online.de)
Date: 03/01/04


Date: Mon, 01 Mar 2004 22:12:32 +0100

Hi, everyone,

I am new to Windows CE development and badly need your help for creating
a DCOM client on PPC 2003 by using eVC 4 sp2 + SDK 2003.

According to MSDN document, DCOM is supported by Windows Mobile 2003. In
detail, one has to use a SDK with DCOM support.
My question is: which SDK does support DCOM?

When using eVC 4 sp2 + SDK 2003, I am facing the following linking error

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Generating Code...
Linking...
Test.obj : error LNK2019: unresolved external symbol
__imp__CoCreateInstanceEx referenced in function "private: int
__thiscall...
emulatorDbg/Test.exe : fatal error LNK1120: 1 unresolved externals
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Definitely, the function "CoCreateInstanceEx" can not be found in the
"ole32.dll" or "atlce.dll".

The project is a standard PPC 2003 MFC project with the following lines
added to StdAfx.h

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#define _WIN32_WINNT 0x0400 //support for dcom

#include <atlbase.h> // support for CComPtr< >
#include <afxctl.h> // MFC support for connection points

#import "DServer.tlb" no_namespace named_guids raw_interfaces_only
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

by calling : HRESULT hResult = CoCreateInstanceEx(CLSID_DCenter ,
NULL, CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER, pserverInfo, 1, &qi);
the client tries to connect to the Desktop NT service and creates the
desired object.

This code works fine with VC++ 6.0 for usual setting and fails on eVC++
for PPC.

So, let me figure out my questions to the Windows CE community:

1. Is it possible to develop a DCOM client for PPC 2003 by using eVC 4
sp2 + SDK 2003?
2. If yes, what SDK then should I use in order to get DCOM supported?
3. If the answer is no, what development tools ( VS.Net 2003? ) should I
use in order to create a DCOM client on PPC?
4. Can anyone kindly post a link to a working sample?

Any suggestion/advice will be appreciated!

Thx in advance!



Relevant Pages

  • Re: DCom Server Launcher Hangs On Startup
    ... How to disable DCOM support in Windows ... > noInheritable element. ...
    (microsoft.public.windowsxp.general)
  • Re: 0x8E Stop Error for tcpip.sys
    ... DCOM got error "The service cannot be started, ... see Help and Support Center at ... Event Type: Error ... Computer: TOMOYO ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: 0x8E Stop Error for tcpip.sys
    ... The Computer Browser service depends on the Server service which failed to ... For more information, see Help and Support ... Event Source: DCOM ... Computer: TOMOYO ...
    (microsoft.public.windowsxp.help_and_support)
  • Problem with DCOM support on PPC
    ... DCOM is supported by Windows Mobile 2003. ... which SDK does support DCOM? ...
    (microsoft.public.windowsce.embedded)
  • Re: xp startup problems - Freezes at startup - Help
    ... Event Type: Error ... Computer: ROB-NOTEBOOK ... see Help and Support Center at ... Event Source: DCOM ...
    (microsoft.public.windowsxp.general)

Loading