Jump to content

Desktop Icon

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
Gumbi

Gumbi

    Newbie

  • Members
  • PipPip
  • 12 posts
Hello, I'm new to programming, started learning a couple weeks ago, and am currently learning arrays. However, I am just curious, after I make a project, how can I make a shortcut to run it? If i go in the folder and click on it all it does is bring up the code, any help would be great!

#2
veda87

veda87

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
I guess you are looking for generating an executable file using C. It depends on the compiler and the operating system you are using...

#3
Gumbi

Gumbi

    Newbie

  • Members
  • PipPip
  • 12 posts
using visual basic, windows 7.

#4
Firebird_38

Firebird_38

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
Compile.

I don't use VB and you're posting in C, C++ forum, but you must compile to get a program. You can them make shortcuts to it. You must first learn how your computer's file system works. You can't run your code, you must compile, then you will have an "exe" file, but you can't see extensions, because you're using win7 and you have no idea how to turn them on, or what they even are, or that you were missing something. So, learn windows first, then move on to installing and using a few programs, then move on to making them.

Really, your ordering is a bit off.

Ps, try hitting F9 or CTRL-F9 in VB to compile. F5 may work, or CTRL-F5. But I can't be sure, as you're posting in the wrong forum.

#5
Gumbi

Gumbi

    Newbie

  • Members
  • PipPip
  • 12 posts
Firebird, what are you talking about? I know how to compile and run my programs just fine? Please read original post before you start putting in random text.

#6
Firebird_38

Firebird_38

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts

Gumbi said:

Hello, I'm new to programming, started learning a couple weeks ago, and am currently learning arrays. However, I am just curious, after I make a project, how can I make a shortcut to run it? If i go in the folder and click on it all it does is bring up the code, any help would be great!

Well, you need to compile. Then you get an exe file. If you knew what this was, you wouldn't be mistaking your source code for the executable. But that's exactly what you're doing.

So, not as random as you might think. As a matter of fact, you might think twice about calling it random. In any case, if you don't know what you're doing, and you call people that do know what they're doing "random" then you can be guaranteed not to ever find out how to do things. In any case, C is not VB and VB is not C and you're in the wrong forum, plus, you need an exe file, and this exe file will not bring up your source code. This is funny, but not really. More like sad, but not really.

#7
Gumbi

Gumbi

    Newbie

  • Members
  • PipPip
  • 12 posts
Firebird there is no exe file in my folder... Stop trying to flame, I'm here for help, because I obviously don't know much about programming, but I do know that there is no .exe file to be found. Grow up please, you just wrote a paragraph crying. Anyone willing to help please let me know, firebird go away.

#8
Gumbi

Gumbi

    Newbie

  • Members
  • PipPip
  • 12 posts
Seriously I just read everything you wrote, being an *******. You obviously don't know much about programming either if you waste your time on this thread telling me I need to practice installing programs because "I don't know how to on win 7." Lol so funny, finnaly found someone you know more programming then and all you wanna do is try to show everyone how amazing you are, please grow up.

#9
Firebird_38

Firebird_38

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
Anyway, you have to compile it to an exe, then you'll have an exe. Where VB puts this exe, I don't know. Usually in the same dir as your project file, but really, you can change these settings, so I don't know your setup.
Plus, you're posting in the wrong forum. I already said that, but I'll say it again, post it in the VB forum and they'll tell you how to compile to an exe. But one thing I do know and that is that you need an exe.
And I'm not going away. But, since you're posting in the wrong forum, maybe you should. But you can stay here if you like, I just think that maybe you're better off in the VB forum, where they can tell you how to compile to an exe.

Good luck!

Posted Image


#10
Firebird_38

Firebird_38

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts

Gumbi said:

You obviously don't know much about programming either if you waste your time on this thread
...
finnaly found someone you know more programming then

It's more than not more then, but that's not relevant.
What is relevant is that you need to have an exe file, google it. And you asked how to do that, and that's what I'm saying, you need to compile.

It's also irrelevant how much I know, because you need to compile, no matter if I'm a drooling vegetable or not.

And even though you may say, or think, or both, that I'm a noob at programming, I'm not. But it isn't necessary for you to believe me.

In the mean time, go to the VB forum and enjoy posting there. Because this isn't the VB forum. But, you already knew that.

Posted Image


#11
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
Take it easy now guys, there's a reason he ask and the reason is that he doesn't know how to do it. He doesn't need someone telling what he already know.

Anyways, I don't really know the windows 7 file path but on xp/vista you can find the exe here ...\Visual Studio 2008\Projects\[your project's name]\[your project's name]\obj\Debug\

Of course it also depends on your VB version.

*moving to VB forum too *

#12
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts

Quote

Hello, I'm new to programming, started learning a couple weeks ago, and am currently learning arrays. However, I am just curious, after I make a project, how can I make a shortcut to run it? If i go in the folder and click on it all it does is bring up the code, any help would be great!
You need to use a installer which allows you to make your program run on different computers and allows you to place a desktop icon, just Google "Free windows installer", and don't listen to Firebird_38 he's just going off... ;)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.