
-----------------------------------
Defenceman
Tue Apr 21, 2009 9:25 pm

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)

-----------------------------------
Brightguy
Tue Apr 21, 2009 9:36 pm

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.

-----------------------------------
Tony
Tue Apr 21, 2009 9:36 pm

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.

-----------------------------------
Defenceman
Tue Apr 21, 2009 9:42 pm

RE:Windows
-----------------------------------
I get the whole compiling. I want to run it without going through Visual Studio.

-----------------------------------
Tony
Tue Apr 21, 2009 9:58 pm

Re: RE:Windows
-----------------------------------
I get the whole compiling.
Well then compile your source code into a binary executable, and run that.

-----------------------------------
ecookman
Wed Apr 22, 2009 10:22 am

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

-----------------------------------
Joel92
Wed Apr 22, 2009 4:19 pm

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? )

-----------------------------------
jbking
Wed Apr 22, 2009 4:49 pm

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.

-----------------------------------
Joel92
Wed Apr 22, 2009 5:16 pm

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. )

-----------------------------------
Insectoid
Wed Apr 22, 2009 5:54 pm

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.
