pete said:
Mike wrote:
>>
Hi
I would like to use microsoft visual studio to compile a C program.
Does somebody know how to compile,
Ctrl F7
>link
F7
Well, I'm not about to fire up a Windows machine to check, but ISTR that
the exact keypresses may depend on which keyboard bindings you selected
when you installed VS. The reason I use weasel words like "may" is that I
may be disremembering - it may only be the editor itself to which these
choices apply.
>
>and run it?
I create a project and add a program to it.
I press F5 to start debug
(because I cannot find any command to run, why?).
A console window just appears and close very quickly.
How can I pause the console window?
Don't run the program from the MSVC console window.
Good advice, but there is an alternative: Ctrl-F5 (or whatever), which runs
the program outside the debugger and displays the legend "Press any key to
continue" (or some trivial variant thereof) when the program terminates.
Open another window from outside of MSVC,
A console window, that is. In modern Windowses, this can be done by
pressing Windows-R and entering the command
cmd
In older Windowses, the command is
command
and cd (change directory) to where the executable files wind up,
amd run your programs from there.
Right. Note that the executable files tend to be created in subdirectories
of the development directory, with the default names "debug" or "release",
depending on whether you're building a debug version or a release version.
Might I suggest that any further discussion of this stuff more properly
belongs in comp.os.ms-windows.programmer.win32 or one of the Microsoft
groups?
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999