From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio C++ Compilation error...

Hello,
I am having some difficulties compiling this project. The message I get
after I try to Build the project is:
"Error executing c:\windows\system32\cmd.exe.
PROJx.exe - 1 error(s), 0 warning(s)"


This is the only error. I am new to VS and was wondering what this error
means. I am using XP and Visual Studio C ++ 6.0.
0 Kudos
Message 1 of 3
(2,638 Views)
cmd.exe is the Windows command interpreter (the program that processes the commands that you type into a Command Prompt window).

My best guess is that the project you are building has a post build step that is trying to run cmd from a hard-coded path and the Windows directory on your machine is not C:\Windows. I am assuming that you got this project from another developer.

To see if this is the case, go to Project>>Settings>>Post-buid step and Project>>Settings>>Custom Build and see if either of them is trying to launch cmd.exe.

David Rohacek
National Instruments
0 Kudos
Message 2 of 3
(2,638 Views)
There is a Custom Build entry as:
Commands:
$(ProjDir)\build.exe

but there is nothing in the Post-build step and nothing listed refering to
cmd.exe. The build.exe file is located in the project directory. The
project is from National Semiconductor but they don't support it anymore.

Thanks for your help.
"drohacek" wrote in message
news:50650000000500000012D90000-1042324653000@exchange.ni.com...
> cmd.exe is the Windows command interpreter (the program that processes
> the commands that you type into a Command Prompt window).
>
> My best guess is that the project you are building has a post build
> step that is trying to run cmd from a hard-coded path and the Windows
> directory on your machine is not C:\Windows. I am assuming that you
>
got this project from another developer.
>
> To see if this is the case, go to Project>>Settings>>Post-buid step
> and Project>>Settings>>Custom Build and see if either of them is
> trying to launch cmd.exe.
>
> David Rohacek
> National Instruments
0 Kudos
Message 3 of 3
(2,638 Views)