Author |
Message |
Defenceman
|
Posted: Tue Apr 21, 2009 9:25 pm Post subject: Windows |
|
|
Hello,
I am somewhat new to Computer Sciences as I am in my Comp Sci course right now only learning C++ to this point. I'm more curious about what kind of lanuage I can use that will allow me to run a program by double clicking it on the "Desktop" rather then having to run everything through Visual Studio C++ Edition. If someone can point me in that direction, I would really appreciate it.
(If my language is confusing, I mean run it as if it were an icon like Internet Explorer, or something like WoW) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Brightguy
![](http://compsci.ca/v3/uploads/user_avatars/527435178485ad4c287538.gif)
|
Posted: Tue Apr 21, 2009 9:36 pm Post subject: Re: Windows |
|
|
When you click "Run" Visual Studio will compile an .exe file in the project directory and run that. You could also run the program by double clicking on it in Windows Explorer, for example. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Tue Apr 21, 2009 9:36 pm Post subject: RE:Windows |
|
|
That... is a pretty bad title.
The right question is "how do I compile a program?" and Visual Studio already does. It also runs the file for you, after compilation.
Time to learn about command line and using command line compilers. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
Defenceman
|
Posted: Tue Apr 21, 2009 9:42 pm Post subject: RE:Windows |
|
|
I get the whole compiling. I want to run it without going through Visual Studio. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Tue Apr 21, 2009 9:58 pm Post subject: Re: RE:Windows |
|
|
Defenceman @ Tue Apr 21, 2009 9:42 pm wrote: I get the whole compiling.
Well then compile your source code into a binary executable, and run that. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: Wed Apr 22, 2009 10:22 am Post subject: RE:Windows |
|
|
what you can do if you are using one of the visual studio programs is use the save all button.
then go to [save location]\bin\debug\then look for the exe |
|
|
|
|
![](images/spacer.gif) |
Joel92
|
Posted: Wed Apr 22, 2009 4:19 pm Post subject: Re: Windows |
|
|
I'm a bit lost here...
Are you referring to "Console Applications" sorta command line feel...And you want a application that has an interface / GUI?
If this is what you're asking; then you'll need to learn how to do Win32 GUI programming.
( If you weren't asking this, and how to simply run a application off your desktop, then just simply compile it? ) |
|
|
|
|
![](images/spacer.gif) |
jbking
|
Posted: Wed Apr 22, 2009 4:49 pm Post subject: Re: Windows |
|
|
I think you have a couple of options:
1) Drag the executable from Windows Explorer onto the desktop so that you'll get the options of, "Move here, copy here, create shortcut here," where any of those are what you want.
2) Create a new shortcut and give it the path to the executable in the window asking for the location of the item.
Either should work as what you want to do is connect the desktop with the executable file, which has nothing to do with compiling the code. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Joel92
|
Posted: Wed Apr 22, 2009 5:16 pm Post subject: Re: Windows |
|
|
I mean no disrespect to the OP; but I'm suprised someone who is in CS can't figure out how to move a file to the desktop. ( I really hope this isn't the real problem and maybe I've misunderstood. ) |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Wed Apr 22, 2009 5:54 pm Post subject: RE:Windows |
|
|
When you run it in VS, it creates an EXE file. If you go to where that file is saved, you can double-click the file and it will run. Then copy & paste to the desktop. |
|
|
|
|
![](images/spacer.gif) |
|