Page 2 of 7

Posted: Mon Mar 10, 2003 3:32 pm
by eqjoe
When running nmake for the Microsoft Detours package, make sure that the VS6 enviroment is setup. VS6 setup saves this in a batch file named VCVAR32.BAT. The second thing that commonly happens, is that the \lib\detours.pdb that is distributed with detours.exe needs to be deleted and rebuilt. Additional resource include directories are setup under project setting as is Preprocessor Definitions. Use ALT+F7 to access. Notice that your workspace should include both projects.

Posted: Mon Mar 10, 2003 3:45 pm
by driftinsupra
sorry another newb question

how do I add one project to another? till now I have just done really basic stuff and alot of this is over my head.

Posted: Mon Mar 10, 2003 3:46 pm
by driftinsupra
nm figureed it out

Posted: Mon Mar 10, 2003 3:47 pm
by Mckorr
All I had to do was delete detours.h, detours.lib, and detours.pdb, then run nmake in the SRC directory. Everything else worked like a champ, without me making environment changes. Chances are I did that when I installed VS6.

To add the preprocess definition for CINTERFACE, hit Alt-F7, or select Project-->Settings. Then go to the C/C++ tab. On the right you will see a spot for Preproccesor definitions. Add CINTERFACE to the end of what is already there.

As for DX8.1, well, someone sent me an uptodate dinput.h file, which I then copied to my INCLUDE directory. I didn't have to do anything else as far as that goes. Just overwrite the existing one, and VC will find it without any problems. It just grabs it from the standard header files.

Posted: Mon Mar 10, 2003 3:49 pm
by driftinsupra
OK now I am hung up on steps 5 through 8, could you elaborate on this please?

Posted: Mon Mar 10, 2003 3:59 pm
by almostleet
MQ has no icon if that means anything.. just shows up as a blank space on my taskbar then shuts down, I'm at loss for why its not working right now. :cry:

Posted: Mon Mar 10, 2003 4:01 pm
by Jay
Mckorr wrote:As for DX8.1, well, someone sent me an uptodate dinput.h file, which I then copied to my INCLUDE directory. I didn't have to do anything else as far as that goes. Just overwrite the existing one, and VC will find it without any problems. It just grabs it from the standard header files.
You can also include the directory from the DX8.1 SDK

Jay

Posted: Mon Mar 10, 2003 4:02 pm
by Jay
almostleet wrote:MQ has no icon if that means anything.. just shows up as a blank space on my taskbar then shuts down, I'm at loss for why its not working right now. :cry:
As for MQ having no icon, that means that the icon files where not in the directory and the MACROQUEST.RC file was not included in the project.

Jay

Posted: Mon Mar 10, 2003 4:15 pm
by driftinsupra
Just as I though I might have finished all the steps and would get it to comile I get 2 errors. Help!?

--------------------Configuration: macroquest - Win32 Release--------------------
Linking...
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Release/macroquest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

macroquest.exe - 2 error(s), 0 warning(s)
--------------------Configuration: macroquest - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/macroquest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

macroquest.exe - 2 error(s), 0 warning(s)

Posted: Mon Mar 10, 2003 4:22 pm
by Jay
Supra, did you create a NEW "Win32 Application" <not "Win32 Console Application">? It does not look like it...

Jay

Posted: Mon Mar 10, 2003 4:24 pm
by Mckorr
Well, that would explain my earlier problem with DX. Don't have the SDK... have to fix that I guess.

Posted: Mon Mar 10, 2003 4:26 pm
by driftinsupra
Ah so much learning I have to do.

Ok so a console application is something this a program that would run in a dos promt

and the windown application is a wondowed program?

Posted: Mon Mar 10, 2003 4:26 pm
by Jay
Mckorr wrote:Well, that would explain my earlier problem with DX. Don't have the SDK... have to fix that I guess.
Woot me! I helped someone! =)

Jay

(long story, shutting up)

Posted: Mon Mar 10, 2003 4:36 pm
by driftinsupra
Ok I keep getting closer and close, I have now been able to comile and run the program. I see the old MQ logo in the systray but after a second or two it vanishes, whats up now?

Posted: Mon Mar 10, 2003 4:42 pm
by Mckorr
Just a guess, but I'd say you have the wrong offsets.

It's not enough to compile a new exe and dll. If you do that and copy them over your old versions, you'll still be using your prenerf offsets. Find the post on the 2/26 offsets and fix your eqgame.ini file.