Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Windows
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Defenceman




PostPosted: 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)
Sponsor
Sponsor
Sponsor
sponsor
Brightguy




PostPosted: 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.
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Defenceman




PostPosted: 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.
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
ecookman




PostPosted: 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
Joel92




PostPosted: 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? )
jbking




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Joel92




PostPosted: 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. )
Insectoid




PostPosted: 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.
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: