midl kann C preprocessor cl.exe nicht finden

Ich versuche, meine Datei arith.idl mit midl zu kompilieren. Ich verwende Windows 7 Pro.

Hier ist der Befehl, den ich in einer Powershell-Eingabeaufforderung starte:

PS> 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\midl.exe' .\arith.idl

Microsoft (R) 32b/64b MIDL Compiler Version 7.00.0555
Copyright (c) Microsoft Corporation. All rights reserved.
64 bit Processing .\arith.idl
midl : command line error MIDL1005 : cannot find C preprocessor cl.exe
PS>

Ich bin ein ziemlicher Neuling in der Windows-RPC-Programmierung. Ich würde mich sehr über Hilfe freuen. Ich habe gelesenDie aber das löst nichts (gleiche Symptome). Ich habe auch versucht, den Präprozessor cl.exe mit diesem Befehl anzugeben:

PS C:\> & 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\midl.exe' /cpp_cmd 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe' C:\Users\$e\Desktop\MIDL\arith.idl

Microsoft (R) 32b/64b MIDL Compiler Version 7.00.0555
Copyright (c) Microsoft Corporation. All rights reserved.
Processing C:\Users\philippe.CHIBOLLO\Desktop\MIDL\arith.idl
PS C:\>

Dieser Befehl gibt nichts zurück und

echo $?

returns False

BEARBEITEN

Die Ausführung der Datei vcvarsall.bat ändert nichts. Hier ist die Ausgabe des PowerShell-Befehls, den ich gestartet habe:

PS C:\> & 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat'
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
PS C:\> & 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\midl.exe' /cpp_cmd 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe' C:\Users\$me\Desktop\MIDL\arith.idl
Microsoft (R) 32b/64b MIDL Compiler Version 7.00.0555
Copyright (c) Microsoft Corporation. All rights reserved.
Processing C:\Users\$me\Desktop\MIDL\arith.idl
PS C:\> echo $?
False
PS C:\>

Antworten auf die Frage(2)

Ihre Antwort auf die Frage