Solved

Building RemETag ISAPI Filter Problems

Posted on 2006-11-02
3
511 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now