Re: Converting .cpp to .exe



Hi, my first post..

How do i convert the C program to a .exe file where like any other
programs, double click on a icon and the program is launch.

I'm using MS Visual C++ .Net 2003.

Thanks.

Hi,

If you already have a C program that contains the code for a program ( a
hello world program for example), you can create an empty win32 project. you
then add your file to the project, set the correct project properties
(output name etc.) and simply build the application.

If you are new to C++, configuring your project settings could take some
time.
To get started, you can also create a new Win32 console project.
for example: if your project is named 'hello', then you open hello.cpp,
remove the main function, and copy your existing program into hello.cpp.
that way you can build your application with the default project settings.

Note: you have to leave the line that says '#include "StdAfx.h"' in
hello.cpp. otherwise the compiler will complain, since it expects to find
that directive. This is because that file is used to generate a precompiled
header.

There are a few other ways to get you started, but I think the above one is
the simplest one.

after you built your program, the exe file will be located in the output
directory. you can then simply double click it to launch it.

--

Kind regards,
Bruno.
bruno_nos_pam_van_dooren@xxxxxxxxxxx
Remove only "_nos_pam"


.



Relevant Pages

  • Re: Difference between F5 et running directly the debug exe
    ... When you run an object in debug mode objects aren't cleared by the ... dlls) has a different behaviour regarding the way I launch it. ... wrong when I launch the exe file from the bin\debug directory. ... The difference is an object which becomes empty for an unknown reason. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: shell problem
    ... launched at boot that will launch your GPS application? ... <apellerin AT adeneo DOT adetelgroup DOT com> ... to use map application softwarein SD card as shell.Map ... software(a exe file) in SD card.And if there is other way to customize ...
    (microsoft.public.windowsce.platbuilder)
  • how to produce cross-platform exe file?
    ... In linux system, I can launch the app by this commmand: ... I can launch the app by this command: ... I want to make a exe file, so that by double clicking the exe file, ...
    (Debian-User)
  • Re: Complete Newbie
    ... file on the same CD that the exe file is on. ... Create your form and add the buttons you want to use to launch the files. ... Dim filename As String ... If no viewer is registered for the file type, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: c:windowsprefetch ?
    ... seeing what is created in the prefetch folder) that the hash that is used is ... same location then the hash will be the same and when you launch the new ... I was using a program that is simply one .exe file (no install necessary, ... for all occurences of this .exe file on my system and saw that it came up ...
    (microsoft.public.windowsxp.configuration_manage)