From: Haiping on
Hello,

I got the following compiler error:
command line error MIDL1004 : cannot execute C preprocessor cl.exe midl

Output:
20>Creating Type Library...
20>Processing .\UnitConverter.idl
20>midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe
20>Build log was saved at
"file://v:\MysolutionFoler\MyProjectFoler\DebugU\BuildLog.htm"
20>UnitConverter - 1 error(s), 0 warning(s)

When I Open VS2005 command prompt and run the commmands in BuildLog.htm file
the all work fine. But why I got the compiler error when build by VS IDE?

Please tell me if you have any suggestions?

Thank you,