Using Zeus with Microsoft Tools

Find Tips and tricks on how to better use the Zeus editor. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
Site Admin
Posts: 2448
Joined: Fri Aug 13, 2004 5:10 pm

Using Zeus with Microsoft Tools

Post by jussij » Thu Sep 10, 2009 7:07 am

For the Microsoft C# compiler, provided it is install correctly, should work out of the box with Zeus.

But for the Microsoft C/C++ compiler, it will require some minor configuration before it can be used inside the IDE.

Here the two steps required to get run the Microsoft C/C++ compiler working inside the Zeus IDE.

Step 1: Create a Desktop Shortcut to Zeus Batch File

Use the mouse right click button on the desktop an then use the New, Shortcut menu to create a shortcut with the following details:

Target: "C:\Program Files (x86)\Zeus\ze.cmd"
Run: Minimized
Icon: Hit the Change Icon button, browse to "C:\Program Files (x86)\Zeus\zeus.exe" and select the Zeus icon.

Step 2: Test Everything is Working
By double clicking on the new shortcut above, you will have a new Zeus session that is correctly configured to run the Microsoft C/C++ compiler.

To test that configuration, create the following test.cpp file:

Code: Select all

#include <iostream>
using namespace std;

int main(int argc, char *argv[])
    std::cout << "Hello, World!" << endl << endl;
    return 1;
Now using the Compiler, Compile menu should result in this compiler output:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

This will have also resulted in the creation of a working test.exe executable file:
Hello, World!
Cheers Jussi

** Extra Debug Step if Required **

The batch file from above will only work if the vsvars32.bat file was located in the default Microsoft installer locations which may not always be the case.

Luckily the location of this batch file can be easily found from inside Zeus using the Tools, DOS Command Line menu and entering the following command:

Code: Select all

dir "$MsVcVarsPath"
Running this command should result in the following output:
Directory of C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools

29/07/2009 14:03 <DIR> .
29/07/2009 14:03 <DIR> ..
29/07/2009 14:02 <DIR> 1033
28/04/2005 18:04 11,197 AtlTraceTool8.chm
08/11/2007 08:19 75,272 AtlTraceTool8.exe
29/07/2009 14:00 <DIR> Deployment
08/11/2007 08:19 45,568 errlook.exe
02/08/2002 15:50 7,427 errlook.hlp
07/11/2007 12:01 31,744 guidgen.exe
08/11/2007 08:19 51,704 gutils.dll
08/11/2007 08:19 27,640 makehm.exe
19/10/2004 14:34 115,559 spyxx.chm
08/11/2007 08:19 631,800 spyxx.exe
08/11/2007 08:19 161,280 spyxxhk.dll
29/07/2009 13:59 <DIR> Templates
08/11/2007 08:19 21,504 uuidgen.exe
30/08/2007 15:31 1,748 vcvars.txt
29/07/2009 13:59 <DIR> VDT
29/07/2009 14:06 2,257 vsvars32.bat
13 File(s) 1,184,700 bytes
6 Dir(s) 50,424,692,736 bytes free
You will notice the results of the search locate the vsvars32.bat file in the the C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools folder.

This ties in with the code found in the batch file as shown below:

Code: Select all

REM Microsoft Visual Studio 2008
call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" goto VS2005
goto Zeus
If you find the vsvars32.bat file in a different, non-default folder location then just edit the ze.cmd batch to suit ;)

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 0 guests