Click here to Skip to main content
15,880,796 members
Articles / Mobile Apps / Windows Mobile

Bringing DCOM remoting functionality to Windows CE and .NET CF2.0

Rate me:
Please Sign up or sign in to vote.
4.93/5 (11 votes)
17 Apr 2006CPOL14 min read 96.8K   513   40  
This article shows how to use DCOM on Windows CE 5.0. We will add full DCOM rich error information, and implement a DCOM interface between a Windows XP .NET 2.0 client and Windows CE DCOM server. With this code, it is possible to code .NET remoting alike functionality through DCOM interop.
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by dcomcnfg.rc
//
#define IDC_DELETE                      3
#define IDC_ACCESS                      3
#define IDC_ADD                         4
#define IDC_LAUNCH                      4
#define IDD_DIALOG1                     101
#define IDD_MAIN                        101
#define IDI_ICON1                       104
#define IDD_PERMISSIONS                 105
#define IDD_DEFAULTSECURITY             106
#define IDD_CLASSSECURITY               107
#define IDD_CLASSSUMMARY                108
#define IDD_ADDPERMISSIONS              109
#define IDD_CLASSACTIVATION             110
#define IDC_EDIT1                       1000
#define IDC_PRINCIPALNAME               1000
#define IDC_SUMMARY                     1000
#define IDC_REMOTESERVERNAME            1000
#define IDC_RESULT                      1001
#define IDC_COMBO1                      1002
#define IDC_AUTH                        1002
#define IDC_GRANTORDENY                 1002
#define IDC_COMBO2                      1003
#define IDC_IMPERS                      1003
#define IDC_BUTTON1                     1004
#define IDC_CLASS                       1004
#define IDC_SECURITY                    1004
#define IDC_BUTTON2                     1005
#define IDC_DEFAULT                     1005
#define IDC_ACTIVATION                  1005
#define IDC_BUTTON3                     1006
#define IDC_BUTTON4                     1007
#define IDC_BUTTON5                     1008
#define IDC_BUTTON6                     1009
#define IDC_BUTTON7                     1010
#define IDC_CHECK2                      1012
#define IDC_SECUREREFS                  1012
#define IDC_COMBO3                      1014
#define IDC_CLSIDS                      1015
#define IDC_PERMISSIONS                 1016
#define IDC_ENABLEDCOM                  1017
#define IDC_LAUNCH_TXT                  1018
#define IDC_ACCESS_TXT                  1019
#define IDC_RUNREMOTELY                 1021
#define IDC_RUNLOCALLY                  1024
#define IDC_GROUP                       1025

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        113
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1026
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions