View Full Version : Thread for compile problems with V1 or V2
maggotboy
11-23-2002, 10:59 AM
There's nearly 300 posts on the V1 and V2 code, so sifting through it all is both tiring and annoying ... thus I'm breaking out the most frequent problems into new threads. One for compile problems, and one for crash problems.
If you're having problems compiling the V1 or V2 sniffer code I wrote, then please post here with:
1. Your OS info + service packs
2. The compiler you're using + version #
3. Whether or not you're using the Microsoft Platform SDK (if applicable)
4. The warnings and/or error messages you're receiving.
5. Please read all the posts in this thread before posting your problem! If the issue is unresolved or nothing matches your specific circumstance, then post your problem, but not before!
Maggotboy
BlackJack
11-27-2002, 08:55 AM
Ok; with the help of people here and elsewhere, I have it compiling properly with C++ NET. For those interested, here are the exact settings that worked for me. I will go back and delete my other posts (since they might be misleading to people).
Windows XP Pro
Visual C++ NET
Steps as completed
Start new Project
Win32 Project
Application type: DLL
Additional options: Empty Project
Copy both eqsniffer files into project folder
Add both files to project (add existing files)
Edit first line of eqsniffer.def [LIBRARY <projectname>]
Select project properties:
Change configuration: All configurations
Under C++/General/Debug Information Format: Disabled
Under C++/General/Detect 64-bit Portability Issues: No
Under C++/Language/Enable Run-Time Type Info: No [default]
Under C++/Code Generation/Enable String Pooling: No
Under C++/Code Generation/Enable Minimal Rebuild: No
Under C++/Code Generation/Enable C++ Extensions: No
Under C++/Code Generation/Run-time Library: Single Threaded
Under C++/Code Generation/Enable Function-Level Linking: Yes
Under C++/Command Line/Enable Construction Displacements [default]
Under Linker/Debug/Generate Debug Info: No
Under Linker/Input/Module Definition File: eqsniffer.def [important]
Compile
suseuser7341
11-27-2002, 10:19 AM
if you edited eqsniffer.def (which is only needed if you rename the exported functions as suggested) you should replace the rundll32 invocation of InstallHook by your renamed call *g*
BlackJack
11-27-2002, 10:29 AM
Deleted
maggotboy
11-27-2002, 10:46 AM
Blackjack -- these warnings are nothing to worry about. They stem from a compiler option you forgot to turn off called "Check for 64-bit compatibility" or somesuch thing. It simply alerts you to code that will be incompatible should you decide to compile it for a 64-bit OS.
They are warnings only, and do not halt or otherwise prevent the program from compiling.
Maggotboy
devnul
11-27-2002, 10:56 AM
"cl : Command line warning D4007 : '/Gm' requires '/Zi or /ZI'; option ignored "
This tells me your settings are wrong.
There is some weirdness with VS.NET where sometimes it doesn't save the settings you put.. just have to do it again. Go back and double check them.. one will not be the way you put it. Fix it and it should compile.
Wish my own problem were that easy;(
dn
BlackJack
11-27-2002, 11:07 AM
Deleted
domesticbeer
11-27-2002, 01:29 PM
1. WinXP Pro SP1
2. VC++.NET
3. No platform SDK Install
4. No error messages
Here is dbmon output
2552: Ignoring process attach request for C:\WINDOWS\SYSTEM32\RUNDLL32.EXE
2552: Creating event handle "7C.tmp"
3660: time()-cpuSpeed:1495734
3660: TimeGetTime-cpuSpeed: 1512344
3660: Found EQ Process!
3660: Injecting code length 37888 ...
3660: Code allocated at 0x09940000
3660: Setting hook procedure...
3660: Opening global event "7C.tmp"
EQ crashes when you press any key on the keyboard.
BlackJack
11-27-2002, 03:20 PM
Exact same setup and exact same error. You might want to post this on the V2 Crashing thread though, this is the compile error thread.
Powered by vBulletin™ Version 4.0.0 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.