home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / Readme_htm_127________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Extensible Markup Language  |  2003-03-28  |  5.7 KB  |  83 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8"?><root xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:d2="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><?xml-stylesheet type="text/xsl" href="..\..\..\..\readme.xsl"?><HTML><HEAD><TITLE> Remoting COM Sample</TITLE><STYLE>
  2.     .Title{FONT-FAMILY: Verdana;FONT-SIZE: large;COLOR: #808080}
  3.     </STYLE><STYLE>
  4.     .Heading{FONT-FAMILY: Verdana;FONT-SIZE: large}
  5.     </STYLE><STYLE>
  6.     .SectionBreak{FONT-SIZE: small;MARGIN-BOTTOM: 2em}
  7.     </STYLE><STYLE>
  8.     .SmallBreak{FONT-SIZE: small;MARGIN-BOTTOM: 1.5em}
  9.     </STYLE><STYLE>
  10.     .Text{FONT-FAMILY: Verdana;FONT-SIZE: x-small}
  11.     </STYLE><STYLE>
  12.     .FixedHeading{FONT-FAMILY: Verdana;FONT-SIZE: x-small}
  13.     </STYLE><STYLE>
  14.     .FixedText{MARGIN-LEFT: 3ex;FONT-FAMILY: Lucida Console;FONT-SIZE: x-small;FONT-WEIGHT: Bold}
  15.     </STYLE><STYLE>
  16.     .ListSansBullets {list-style-type: none;FONT-FAMILY: Verdana;FONT-SIZE: x-small}
  17.     </STYLE></HEAD><BODY><table><tr><td><h2 class="Title"> Remoting COM Sample</h2></td><td valign="baseline" class="Text">
  18.             ┬á┬á┬á
  19.               
  20.                   (Console Application)
  21.                 </td></tr></table><p class="Text">
  22.     This document contains the release information for the .NET Framework Using COM with .NET remoting sample. You will find the following sections below: 
  23.     </p><ul class="Text"><li><a href="#_Sample_Overview">Overview</a></li><li><a HREF="#Hosting the service in a console application">Hosting the service in a console application</a></li><li><a HREF="#Requirements">Requirements</a></li><li><a href="#_Location_of_Sample">Location</a></li><li><a href="#_Building_the_Sample">Building the sample</a></li><li><a href="#_Running_the_Sample">Running the sample</a></li><li><a href="#_sdkvars">Notes</a></li></ul><p class="SectionBreak" /><h4 class="Heading"><a name="_Sample_Overview" />
  24.     Overview
  25.     </h4><p class="Text"> 
  26. This sample shows how to use remoting with COM by providing the MediaPlayer
  27. as a service to remoting clients.  When PT (Play Title) is selected on the client,
  28. the sample will play an audio as well as a video clip.  This sample assumes you have
  29. multimedia installed in Windows and that this service is working properly. This
  30. sample does not close the Media Player automatically, you have to do that
  31. manually after running the sample.
  32. </p><p class="SectionBreak" /><p class="SectionBreak" /><h4 class="Heading"><a name="#Hosting the service in a console application"></a>Hosting the service in a console application</h4><span class="Text"><p class="Text"><li>Go to the MediaPlayer/Service directory and run runme.bat from a console window.</li><p></p><li>The service will start and wait for a client to connect.</li></p></span><p class="SectionBreak" /><h4 class="Heading"><a name="#Requirements"></a>Requirements</h4><span class="Text"><p class="Text">
  33. This sample will only operate correctly on any version of Windows with the Common Language Runtime and Windows Media Player installed.  
  34. </p></span><p class="SectionBreak" /><h4 class="Heading"><a name="_Location_of_Sample" />
  35.     Location
  36.     </h4><p class="Text">
  37.     This sample is located in the <a href="." title="Jump to Folder" target="_blank">Technologies\Remoting\Advanced\RemotingCOM\MediaPlayer
  38.  
  39. </a> subdirectory of the .NET Framework SDK samples directory.
  40.     </p><p class="FixedHeading">
  41.     For Example:
  42.       <p class="FixedText">
  43.       C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Remoting\Advanced\RemotingCOM\MediaPlayer
  44.  
  45. </p></p><p class="SmallBreak" /><p class="Text">
  46.       This sample contains the following directory structure:
  47.       
  48.       <ul><li class="ListSansBullets"><b>\Service</b> -- 
  49.      
  50. The source files for the service as well as the host.  The
  51. MediaPlayer DLL is generated with tlbimp from the msdxm.ocx.
  52. </li></ul><ul><li class="ListSansBullets"><b>\Client</b> -- 
  53.      
  54. The source code as well as the relevant makefile for building the client
  55. </li></ul></p><p class="SectionBreak" /><h4 class="Heading"><a name="_Building_the_Sample" />
  56.     Building the Sample
  57.     </h4><p class="Text">
  58.     In order to properly build and run this sample, the following steps need to be performed.
  59.     </p><p class="Text"> 
  60. Type <b>nmake -a all</b> from the command line.
  61. <p class="FixedHeading">
  62.   For Example:
  63.   </p><p class="FixedText"> 
  64. C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Remoting\Advanced\RemotingCOM> nmake -a all
  65. </p></p><p class="SectionBreak" /><h4 class="Heading"><a name="_Running_the_Sample" />
  66.     Running the Sample
  67.     </h4><p class="Text">
  68.     In order to run this sample, follow the instructions listed below.
  69.     </p><span class="Text"><ul class="Text"><li>
  70. Ensure the service is running by executing runme.bat (in the MediaPlayer/Service 
  71. directory) from a console window.
  72. </li></ul><ul class="Text"><li>
  73. Start the client by running Client.exe (in the MediaPlayer/Client) from a console 
  74. window and select PT to play the titles provided by this service.
  75. </li></ul></span><p class="SectionBreak" /><h4 class="Heading"><a name="_sdkvars" />
  76.     Notes
  77.     </h4><p class="Text">
  78.     For the .Net Framework samples to function properly, your Path, Include, and Lib environment variables must be set correctly. 
  79.     In many cases, the SDK install program updates these environment variables for you. However, if you installed the .Net Framework SDK 
  80.     using Visual Studio .NET, or unselected "register environment variables" during setup, these environment variables will not be updated. 
  81.     You can set the Path, Include and Lib environment variables by running SDKVars.bat, located in the <i><SDKRoot>\Bin</i> directory. 
  82.     SDKVars.bat must be executed in every command shell.
  83.     </p></BODY></HTML></root>