146 lines
5.4 KiB
HTML
146 lines
5.4 KiB
HTML
<head>
|
||
<title>CAtlSmpl</title>
|
||
</head>
|
||
<body>
|
||
|
||
<a name="top"></a>
|
||
<p>
|
||
<h2>CAtlSmpl</h2>
|
||
<a name="IIS_CAtlSmpl"></a>
|
||
|
||
|
||
<p>
|
||
This is the ATL (ActiveX Template Library) version of the Simple
|
||
sample object for Active Server Pages. It demonstrates how to write
|
||
a component that has straightforward methods and properties. As this
|
||
example is merely a template, demonstrating the required functions,
|
||
there is no installation or sample output information.
|
||
</p>
|
||
|
||
<p><font color="blue"><b>Important</b></font> These samples are provided for educational purposes only. They are not
|
||
intended to be used in a production environment, have not been tested in a production
|
||
environment, and Microsoft does not provide technical support for them.
|
||
|
||
<p>
|
||
</p>
|
||
<p>
|
||
<a href="#req">Requirements</a><br>
|
||
<a href="#loc">Location of the Source Code</a><br>
|
||
<a href="#bld">Build the Sample</a><br>
|
||
<a href="#hlp">Helpdesk</a></p>
|
||
<p> </p>
|
||
<h4><a name="req"></a>Requirements</h4>
|
||
<p>This sample requires the installation of the following software to
|
||
function properly:</p>
|
||
<ul>
|
||
<li>Windows XP Professional with IIS 5.1 installed or Windows XP Server with
|
||
IIS 6.0 installed.</li>
|
||
</ul>
|
||
<font size="2"><a href="#top">to top</a></font>
|
||
<p> </p>
|
||
<h4><a name="loc"></a>Location of the Source Code</h4>
|
||
<p>IIS samples are included in the IIS Software Developer Kit (SDK).
|
||
You can download the IIS SDK from
|
||
<a href="http://go.microsoft.com/fwlink/?LinkId=7298">Platform SDK Update</a>.
|
||
You can view the SDK at <a href="msdn_home" class="weblink">MSDN Online</a>.
|
||
In the table of contents at MSDN Online, click <b>Web Development</b>, <b>Server Technologies</b>,
|
||
<b>Internet Information Services (IIS)</b>, <b>SDK Documentation</b>,
|
||
<b>Internet Information Services</b>, <b>Samples</b>.</p>
|
||
<p>The following source code files are required for this sample:</p>
|
||
<table border="1">
|
||
<tr>
|
||
<th>File</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.sln</td>
|
||
<td>CAtlSmpl Visual Studio .NET solution file, required to build this sample in Visual Studio .NET.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.vcproj</td>
|
||
<td>CAtlSmpl Visual Studio .NET C Project file, required to build this sample in Visual Studio .NET.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.dsp, CAtlSmpl.dsw</td>
|
||
<td>CAtlSmpl Visual Studio 6.0 project files, required to build this sample in Visual Studio Version 6.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.cpp, simple.cpp, stdafx.cpp</td>
|
||
<td>CAtlSmpl source modules containing the code that implements the sample.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.def</td>
|
||
<td>CAtlSmpl.dll definition containing code for creating the sample.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.h, simple.h, stdafx.h</td>
|
||
<td>CAtlSmpl header file containing commonly called routines.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.mak, smplps.mak</td>
|
||
<td>CAtlSmpl makefile for command line compilation</td>
|
||
</tr>
|
||
<tr>
|
||
<td>CAtlSmpl.asp</td>
|
||
<td>CAtlSmpl ASP Page, demonstrating use of this sample</td>
|
||
</tr>
|
||
</table><br>
|
||
<font size="2"><a href="#top">to top</a></font>
|
||
<p> </p>
|
||
<h4><a name="bld"></a>Build and Install the Sample</h4>
|
||
|
||
<p>To build this sample using the Visual C++ IDE, the following
|
||
steps must be performed:</p>
|
||
<ol>
|
||
<li>Open the solution (VS.NET) or desktop (VS6) file to open the project.</li>
|
||
<li>Click <b>Build</b> to create the DLL.</li>
|
||
</ol>
|
||
<p>To build and run this sample without using the Visual C++ IDE, the
|
||
following steps must be performed:</p>
|
||
<ol>
|
||
<li>Type <b>NMAKE All</b> from the command line. For example, if your sample files are located in
|
||
a folder called <code>C:\MySamples</code>, type the following at the command line:
|
||
<pre>cd /d c:\MySamples
|
||
NMAKE All</pre>
|
||
</li>
|
||
</ol>
|
||
|
||
<p> </p>
|
||
<h4><a name="hlp"></a>Help Desk</h4>
|
||
<p>If here you do not find answers to your questions, visit the
|
||
<a href="http://go.microsoft.com/fwlink/?linkid=1782">Microsoft Help and Support</a>
|
||
Web site.</p>
|
||
<table border="1">
|
||
<tr>
|
||
<th>Problem</th>
|
||
<th>Possible Solution</th>
|
||
</tr>
|
||
<tr>
|
||
<td>When browsing to the ASP page, IE returns <b>HTTP 404 - File not found</b></td>
|
||
<td>Verify that you have created a virtual directory of the same name you
|
||
are typing in the Address box of IE....</td>
|
||
</tr>
|
||
<tr>
|
||
<td>When building the dll, C++ or VB returns the a permissions error.</td>
|
||
<td>Once you have called the dll from your web page, your system considers
|
||
it a loaded dll. You must unload it to build it again, either by
|
||
unloading the ASP application or deleting the dll from system32\dllcache.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>When building the dll, C++ returns a permissions error.</td>
|
||
<td>Once you have called the dll from your web page, your system considers
|
||
it a loaded dll. You must unload it to build it again, either by
|
||
unloading the ASP application or deleting the dll from system32\dllcache.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>When browsing to the dll, IE gives you a permissions error.</td>
|
||
<td>The folder and virtual directory must have Execute permissions set on them.</td>
|
||
</tr>
|
||
</table><br>
|
||
<font size="2"><a href="#top">to top</a></font>
|
||
|
||
<hr class="iis" size="1">
|
||
<p align="center"><i><a href="colegal.htm"><EFBFBD> 1997-2002 Microsoft Corporation. All rights reserved</a>.</i></p>
|
||
|
||
</body>
|
||
</html> |