Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

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

, 17 Apr 2006
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.
========================================================================
    ACTIVE TEMPLATE LIBRARY : StarGate Project Overview
========================================================================

AppWizard has created this StarGate project for you to use as the starting point for
writing your Executable (EXE).


This file contains a summary of what you will find in each of the files that
make up your project.

StarGate.vcproj
    This is the main project file for VC++ projects generated using an Application Wizard. 
    It contains information about the version of Visual C++ that generated the file, and 
    information about the platforms, configurations, and project features selected with the
    Application Wizard.

StarGate.idl
    This file contains the IDL definitions of the type library, the interfaces
    and co-classes defined in your project.
    This file will be processed by the MIDL compiler to generate:
        C++ interface definitions and GUID declarations (StarGate.h)
        GUID definitions                                (StarGate_i.c)
        A type library                                  (StarGate.tlb)
        Marshaling code                                 (StarGate_p.c and dlldata.c)

StarGate.h
    This file contains the C++ interface definitions and GUID declarations of the
    items defined in StarGate.idl. It will be regenerated by MIDL during compilation.

StarGate.cpp
    This file contains the object map and the implementation of WinMain.

StarGate.rc
    This is a listing of all of the Microsoft Windows resources that the project uses. 
    When the .rc file is persisted, the defines in the data section are persisted as 
    the hexadecimal version of the numeric value they are defined to rather than the
    friendly name of the define.




StarGate.rc2
    This file contains resources that are not edited by Microsoft 
    Visual C++.  You should place all resources not editable by
    the resource editor in this file.


/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
    These files are used to build a precompiled header (PCH) file
    named StarGate.pch and a precompiled types file named StdAfx.obj.

Resource.h
    This is the standard header file that defines resource IDs.




/////////////////////////////////////////////////////////////////////////////
Proxy/stub DLL project and module definition file:

StarGateps.vcproj
    This file is the project file for building a proxy/stub DLL if necessary.
	The IDL file in the main project must contain at least one interface and you must 
	first compile the IDL file before building the proxy/stub DLL.	This process generates
	dlldata.c, StarGate_i.c and StarGate_p.c which are required
	to build the proxy/stub DLL.

StarGateps.def
    This module definition file provides the linker with information about the exports
    required by the proxy/stub. It contains exports for:
        DllGetClassObject  
        DllCanUnloadNow    
        GetProxyDllInfo    
        DllRegisterServer	
        DllUnregisterServer

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

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)

About the Author

Werner Willemsens
Team Leader
Belgium Belgium
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 17 Apr 2006
Article Copyright 2006 by Werner Willemsens
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid