Solved

Building RemETag ISAPI Filter Problems

Posted on 2006-11-02
3
516 Views
Last Modified: 2012-05-05
Can anyone explain how to set up a new project and build this successfully: http://blogs.msdn.com/yanno/archive/2006/03/03/543176.aspx using Microsoft Visual C++ 6?

First I followed the comments from that page and did a new ISAPI Extension Wizard with name 'RemETag' and accepted the defaults.
So I replace the content of the generated RemETag.cpp with the code from the webpage and Build, this gives error: 'remetag.cpp(75) : fatal error C1010: unexpected end of file while looking for precompiled header directive'

So I choose 'do not use precompiled headers' in settings and build, this gives error:

mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj); second definition ignored
   Creating library Debug/RemETag.lib and object Debug/RemETag.exp
EAFXISD.lib(isapi.obj) : error LNK2005: _HttpFilterProc@12 already defined in RemETag.obj
EAFXISD.lib(isapi.obj) : error LNK2005: _GetFilterVersion@4 already defined in RemETag.obj
Debug/RemETag.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

I searched the error and found that it's to do with the order of the library files, but ignoring them (through settings->input) and then putting them in the library/modules box in the order they appear in the output window does not work, there are more errors from the same library files, any direction is appreciated becuase this is way above my head, but I would love to tinker with this for customizing my server.

ps. I had tried a new project and removing the generated RemETag.cpp and adding a new RemETag.c it really made no difference AFAICT.
0
Comment
Question by:qt0
  • 2
3 Comments
 
LVL 25

Expert Comment

by:clockwatcher
ID: 17864458
Create a new Win32 DLL project (the standard DLL project-- not the MFC-based ISAPI extension).  Select the Empty DLL Project.  Add a file with your filter code to the project.  Add a DEF file to define your DLL exports (HttpFilterProc and GetFilterVersion).  Build your project.

I'd upload a sample project but www.ee-stuff.com seems to be down.

Here's an example of a .DEF file for your filter:

qfilter.DEF
------------
LIBRARY   QFILTER
EXPORTS
   GetFilterVersion   @1
   HttpFilterProc   @2
0
 
LVL 25

Accepted Solution

by:
clockwatcher earned 500 total points
ID: 17872066
0
 

Author Comment

by:qt0
ID: 17873779
Thank you clockwatcher, the provided example files compiled with no errors, although the isapi filter doesnt seem to actually work but that's nothing to do with you.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question