Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nmake C++ code into DLL from sample in platformSDK

0 views
Skip to first unread message

chris rowe

unread,
Oct 4, 2000, 3:00:00 AM10/4/00
to

I hope you can help me out on this one.
I'm sure it is a simple solution but I can't figure it out.
I have just installed the Platform SDK for windows 2000 and I want to
compile a C++ sample file into a dll.
The Platform SDK sample is installed at C:\Program Files\Microsoft
Platform SDK\samples\winbase\HtmlProp\

I need to compile a dll
Here are my instructions to follow:
------------------------------------------------------------------------
--
Description
===========
The HtmlProp sample is an example IFilter implementation that
specializes
the Indexing Service (IS) HTML filter to extract value-type
properties.
It converts HTML meta properties to data types other than strings as
specified by a configuration file.

Path
====
Source: mssdk\samples\winbase\indexing\HtmlProp\

User's Guide
============
* To build the sample
1. Set the Lib environment variable to "D:\mssdk\Lib;%Lib%" and
the
Include environment variable to "D:\mssdk\Include;%Include%",
where D: is the drive on which you installed the Platform SDK.
2. Correctly set the CPU environment variable to, for example,
"i386".
3. Open a command window and change the directory to the source
path
of the sample.
4. Build the filter DLL by entering, at the command-line prompt,
"nmake".
------------------------------------------------------------------------
-------------
I have C++ loaded on my NT workstation
If I go to a command prompt and type in path I get this:

PATH=C:\Program Files\Microsoft
Office\Office;C:\WINNT\system32;C:\WINNT;C:\Program Files\Microsoft
Platform SDK\Bin\WinNT\NT4;C:\Program Files\Microsoft Platform
SDK\Bin\;C:\Program Files\Microsoft Platform SDK\Bin\WinNT

If I go into C++ in the Tools, Options Menu and the Directories Tab, I
have this:
C:\Program Files\Microsoft Platform SDK\include\ATL30
C:\Program Files\Microsoft Platform SDK\include
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

If I go to the command prompt and go the the
C:\Program Files\Microsoft Platform
SDK\Samples\WinBase\Indexing\HtmlProp directory,
and then type in 'nmake', I receive the message:
The name specified is not recognized as an internal or external command,
operable program or batch file.

I am pretty sure that if I followed the 1st step, I would be able to
create the dll, but I don't know how to set the lib and include
environmental variables.

Please help
Thanks for your time,
Chris Rowe
chris...@copleynews.com

Alexander Bartolich

unread,
Oct 5, 2000, 3:00:00 AM10/5/00
to
chris rowe wrote:
> [...] If I go to the command prompt and
> [...] type in 'nmake', I receive the message:

> The name specified is not recognized as an internal
> or external command, operable program or batch file.

Variable PATH is missing the bin-directory of VC.
You can correct this by calling vcvars32.bat (e.g. from autoexec.bat)

C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT

--
Electron is a fierce god, tolerating neither Dionysos nor Aphrodite.

0 new messages