application configuration

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

I created a win32 console application and copied the files in the debug
folder onto a separate pc. I try to run the exe file but get an error that
says the application is not configured properly. What do I need to do to be
able to run an exe file created in visual c++?
 
Daniel said:
I created a win32 console application and copied the files in the debug
folder onto a separate pc. I try to run the exe file but get an error
that says the application is not configured properly. What do I need to
do to be able to run an exe file created in visual c++?

Daniel:

You should not be copying the Debug configuration to another PC -- use the
Release configuration.

Most likely the CRT DLL's are not present on the target system. If you compile
your Release version with /MT (static linking) then it should run just by
copying the .exe file to the target computer.
 
You should not be copying the Debug configuration to another PC -- use the
Release configuration.

Most likely the CRT DLL's are not present on the target system. If you
compile your Release version with /MT (static linking) then it should run
just by copying the .exe file to the target computer.
Do I need to create the project as a win32 project, or could I create a
simple empty project and use a standard void main() instead of int
_tmain(...) with arguments?

Daniel
 
You should not be copying the Debug configuration to another PC -- use the
Release configuration.

Most likely the CRT DLL's are not present on the target system. If you
compile your Release version with /MT (static linking) then it should run
just by copying the .exe file to the target computer.

Where do I put the /MT option in the project properties dialog box?

Daniel
 
I put the /MT option in the Command Line option where it says Additional
Options. The next time I opened the project properties dialog box again the
/MT option that I put in is gone.

Daniel
 
Daniel:
You should not be copying the Debug configuration to another PC -- use the
Release configuration.

Most likely the CRT DLL's are not present on the target system. If you
compile your Release version with /MT (static linking) then it should run
just by copying the .exe file to the target computer.

After I do a build, where do I find the release version of the exe file?

Daniel
 
Daniel said:
After I do a build, where do I find the release version of the exe file?

If you haver a separate directory for the solution, the release executable
should be in the Release sub-folder of that. Otherwise it is in the Release
subdirectory of the project directory.
 
I found no such directory.

--

Daniel



David Wilkinson said:
If you haver a separate directory for the solution, the release executable
should be in the Release sub-folder of that. Otherwise it is in the
Release subdirectory of the project directory.
 
Daniel said:
I found no such directory.

Daniel:

If your Release build compiles and runs then the output file must be somewhere!
You did build the Release version, didn't you?

The output file is specified in

Project Properties->Configuration Properties->Linker->Output File

Or you can search your project tree (or computer) for MyAppName.exe.
 
Daniel said:
I was able to find the directory after I did that.

Daniel:

Ah, yes. The Debug and Release directories are only created when you build the
configuration.
 
Back
Top