Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Friends Can't Start The Exe Files I Send :(
Feelay
post May 27 2008, 07:56 PM
Post #1


Kinda N00B
Group Icon

Group: Members
Posts: 230
Joined: 13-January 08
From: Sweden
Member No.: 27,579



I am using visual c++ 2008. and when I send the .exe file that I created to my friend, (from the debug folder) he gets an error message when trying to execute it sad.gif
any ideas?

when my friend tried, he said that he got the following error message:

cannot execute
.... And lots of PC info.



When I create these files, I choose win32 console application (something that looks like the cmd when executed)

please.. I really need to get this thing working

Thanks //Feelay

This post has been edited by Feelay: May 27 2008, 08:03 PM
Go to the top of the page
 
+Quote Post
xboxrulz
post May 28 2008, 12:18 AM
Post #2


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,788
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233



you have to give us the full error if u want us to try to see what's the problem or give us the source code for us to try to debug it.

xboxrulz
Go to the top of the page
 
+Quote Post
Quatrux
post May 28 2008, 10:04 AM
Post #3


the Q
Group Icon

Group: [HOSTED]
Posts: 1,051
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



This kind of things happen very frequently, it works on my machine, but it doesn't work in the University or at my friends machine, this is really what gets on my nerves, this always happens if you're using Visual Studio, doesn't matter C++ or C# usually it is due to different machines, different libraries, utilities and settings..

If you want to get over it, start using gcc and always include all the files you are using, sometimes a small image, which you're using can break all the program, even though on console applications I believe that you're probably not using any images, it was just an example, I never tried to figure this kind of things out, due to the product is from Microsoft, thats why it's best to have a laptop and to bring it with yourself and show the working program, it would be a pity if it would be your job though. biggrin.gif
Go to the top of the page
 
+Quote Post
Feelay
post May 28 2008, 10:14 AM
Post #4


Kinda N00B
Group Icon

Group: Members
Posts: 230
Joined: 13-January 08
From: Sweden
Member No.: 27,579



what is gcc huh.gif?

(and if I should include all the files, that I'm sending to my friends, where can I find them?)

@xboxrulez: Here is the sourcecode

CODE
// Hello World.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"

using namespace std;



int main()
{
    cout <<"Hello World :D \n"<<endl;
    char name[50];
    cout <<"Please enter your name: ";
    cin >> name;
    cin.ignore();
        cout<<"\n\nWelcome "<<name<<"! Thank you for helping me to try this \"program\" ^.^\n"<<endl;
        cout<<"Press Enter to continue";
        cin.get();
    return 0;
}


It works on my pc, but not on others.
a friend that tryed it today said that he had no error. he said that nothing happened.


Edit:
I changed from microsofts product, to dev-c++, and it worked just fine.. So I will be using this, untill somone in this world, knows why it is not working.
Can anyone tell me this. Am I able to create games in dev-c++ like I would in Microsoft Visual?
thank you smile.gif


This post has been edited by Feelay: May 28 2008, 06:11 PM
Go to the top of the page
 
+Quote Post
NelsonTR4N
post Oct 9 2008, 01:40 AM
Post #5


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 20
Joined: 8-October 08
Member No.: 33,303



I hear it is possible to program games in C++ but you are not available to many functions. Dev-C++ is not for professional programmers. Dev-C++ is recommended for beginners.
Go to the top of the page
 
+Quote Post
mikesoft
post Oct 9 2008, 02:29 AM
Post #6


Member - Active Contributor
Group Icon

Group: [HOSTED]
Posts: 92
Joined: 26-December 07
From: Venezuela
Member No.: 27,134



I sometimes program using Visual Basic and the file often doesn't run at college. This is because you need to have the framework installed if you're trying to run the app, installing visual studio will install the framework, but you don't get that by default. By using windows update you can get the .NET frameworks, 3.5 is the one for VS 2008.. maybe that's the reason you get the error, it's obvious that is file missing or libraries, so maybe installing the framework will help.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Renaming collection of Pictures (files)!(15)
  2. Send Email Remotely(14)
  3. Code To Send An Email From A Form(10)
  4. How To Play *.rm Files With Media Player(13)
  5. Who's Logged In?(4)
  6. Screensaver Problems(11)
  7. Need Some Help/advice On How To Restore Lost Files(5)
  8. Playing Two Wav Files Simultaneously In C#(4)
  9. If You Have Some Private Files(17)
  10. Sharing Files In Windows Xp Home(15)
  11. How To Embed Swf Files In Joomla ?(9)
  12. Choosing A Different Joomla Start Page(5)
  13. Homepages Friends(5)
  14. Converting Flash Files To Gif(7)
  15. Php Send Mail Through Smtp(8)
  1. How To Hide Your Files In XP(18)
  2. Renaming Files (Using Excel Spreadsheet)(20)
  3. Creating Executable Jar Files(9)
  4. How To Transfer Files From One Computer To Another(16)
  5. How Do I Send SMS To Mobiles Through My Site(9)
  6. Get User Input From Vbscript For Batch Files(2)
  7. How Do I Chmod Files On Astahost ?(20)
  8. Switch Network Settings With Batch Files(18)
  9. Need Some Help/advice On Lost Files.(8)
  10. Uploading More Than 30 Files In Less Than 10 Clicks?(5)
  11. Help Me: Need To Transfer Files From Old Computer(18)
  12. Php Location Header No Send Session Id ?(0)
  13. How To Send Email Using VB (using SMTP) ?(8)
  14. Help A Beginner Start On With Game Programming(8)
  15. Email Problems(5)


 



- Lo-Fi Version Time is now: 11th October 2008 - 04:32 AM