application configuration

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++?
 
D

David Wilkinson

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.
 
D

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.
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
 
D

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
 
D

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
 
D

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
 
D

David Wilkinson

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.
 
D

Daniel

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.
 
D

David Wilkinson

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.
 
D

David Wilkinson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top