Problem with DCOM support on PPC
From: Dr. Wolgales (Wolgales_at_t-online.de)
Date: 03/01/04
- Next message: Roger Womack: "Re: Migrating project from evc3 to evc4"
- Previous message: guess: "Re: Compitible Problem"
- Next in thread: Chris Tacke, eMVP: "Re: Problem with DCOM support on PPC"
- Reply: Chris Tacke, eMVP: "Re: Problem with DCOM support on PPC"
- Messages sorted by: [ date ] [ thread ]
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!
- Next message: Roger Womack: "Re: Migrating project from evc3 to evc4"
- Previous message: guess: "Re: Compitible Problem"
- Next in thread: Chris Tacke, eMVP: "Re: Problem with DCOM support on PPC"
- Reply: Chris Tacke, eMVP: "Re: Problem with DCOM support on PPC"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|