making an .exe file VC++

Hello,

How do I create an .exe file from a VC++ program (using VS 6.0). I understand U need to compile the program and that will make an exe file. I did that. When I try to build the file, I get a dialogue box which is asking me to "specify a executable file". When I try to locate the .exe file of the code in the debug folder, I am not able to find it.

I know it sounds silly... but I have lost my patience on this small bug... :(

any suggestions?

[479 byte] By [VishWarren] at [2007-12-16]
# 1
If it's asking you to specify an executable, then the project type is not an "execuatable" type. For example, if your trying to make a class library, they don't compile as an executable, but as a ".lib" and ".dll".

I don't know about Visual Studio 6.0, but in VS .NET there is a Project->Configuration Type that'll allow you to set the type.

Here's what you can do:

1. See if anybody knows how to do this in VS 6.0
2. Create a new Project with the type being "MFC AppWizard" (if you are using MFC), "Win32 Application" (if you are using the API GUI), or "Win32 Console Application" (if you are creating a console application).

Hope this helps.

FlamTaps2 at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2
Also, please note that you can only comple .c or .cpp files. You cannot compile .h or .hpp files because they are header files, they have to be included by a compiler into either .c or .cpp file.

Signle .c or .cpp file is compiled into so called object file with .obj extension.

When you are bulding/re-building the project, all your .c or .cpp files are compiled into .obj files and then the linker creates .exe file from those .obj files.

Hope this was useful for you.

Best regards,
Eugene.

EugeneDorofeyev at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...