das wurde außerdem noch als hilfe angegeben:
I found this such a good thread that I would like to chip in a bit on how to compile this project with VS 2005 Beta 2 Express edition.
I am aware that it has entered paid status but up untill not so long ago it was still a free compiler for evaluation/private use.
How to compile Wow!Hider.dll:
For starters follow justme's excelent guide.
When you get to this part:
Fire VS up and open the file
If you try to build now you will get the following error: 'Error Spawning cl.exe'.
You will notice that you are kinda stuck. You wont even get this error message.
You will be asked to import this "old" VS2003 project and to that you say yes and click Next and Finish.
Now shut down VS2005 if you have it up.
Go to http://www.microsoft.com/downloads/details...&displaylang=en
to get the Platform SDK. There is 3 options, one for AMD64, one for ia64 and one for x86. Pick the x86 version regardless of what kind of 64 bit processor you might have.
Install the SDK with standard install options.
Now, the express version of VS2005 do not allow you to change the include paths so you cant use the normal "Tools -> Options -> Projects and Solutions" pane to change that and you need to tell the compiler where to find your windows header files.
Go here: http://lab.msdn.microsoft.com/express/visu...dk/default.aspx
If you have the non beta version then go here: http://msdn.microsoft.com/vstudio/express/...ualc/usingpsdk/
Section 3 of this document mentions setting "paths". To get to that control panel in windows, press the Windows key and the Pause Break key at the same time. Select the Advanced tab and then depending on Win2k or XP click the differently positioned Environment Variables button.
Scroll down the list a bit see if you can find 3 entries in the variables collum called "path", "include" and "lib". If they are not there, create them with the New button. The names is "path", "include" and "lib" and the values are what the microsoft document in step 3 says they should be.
If you already have them, then append a ";" to the end of the Value listing and paste the appropriate value in there. Adjust the file path if you have installed the SDK into something else than C:\Program Files\Microsoft Platform SDK.
Follow the rest of the document. Step 4 where you find and edit the corewin_express.vsprops file is pretty simple but step 5 can be a bit tricky as there are more than one entry in that file for
Be sure that you find the set of 4 lines as in the document and comment them out with the //. They are listed together with 4 other entries (that I also commented out 'cos I dont like those restrictions
If you keep getting the same build errors as before, after this, then it is probably because you forgot to delete the "vccomponents.dat" file. If you are unsure where "%USERPROFILE%\Local Settings\Application Data\Microsoft\VCExpress\8.0" points to then open up a command promt, type:
CD "%USERPROFILE%\Local Settings\Application Data\Microsoft\VCExpress\8.0"
and watch where you weind up. This is where the file is stored.
With a bit of luck, you now have a new error Very Happy
It should say that it can not find the include file "afxres.h" in WoW!Hider.rc and whats worse is that VS 2005 Express wont let you edit .rc files.
Shut down VS2005 and go to your Hider source directory. Find the file called WoW!Hider.rc and load it up in a normal text editor (love Wordpad .. and Kate on linux). Find the line that says:
and change it into:
Save the file and close the editor. Open up the Hider project in VS2005 again and try to build it. You should now be able to build WoW!
One more thing.
I found that I could not make a reference to the previously build WoW!Hider.dll from VS2005. The C# IDE would say that "WoW!Hider.dll could not be added. This is not a valid assembly or COM
component. Only assemblies with extension 'dll' and COM components
can be references." and if one tried to register the dll with Regsvr one would get something of the same error message saying that no entry point was found in the dll.
It turns out that this is caused by the /MT plus /clr flags during compile with VS2005. It sounds very fancy but what you need to do is go into the Project menu -> Properties -> Configuration Properties -> General in the C++ IDE.
Here you change Common Language Runtime Support to the Old Syntax setting. Then go to C/C++ under Configuration Properties then Code Generation and change Runtime Library to Multi-threaded DLL /MD
Now it should generate a dll that you can reference to in the WoW!Sharp project.
Fill me in if I have missed something or it needs a comment or two.