Making an executable work on another computer

Just starting out? Need help? Post your questions and find answers here.
RobKiwi
User
User
Posts: 19
Joined: Tue Oct 23, 2012 5:47 am
Location: Rawene, Hokianga, New Zealand
Contact:

Making an executable work on another computer

Post by RobKiwi »

I have made a program executable which works well on my Win7 computer with PureBasic installed.
However when I copy "myprogram.exe" on to my wife's Win7 laptop and try to make it work nothing happens.
Any ideas please? I'm pretty well a beginner. Apologies if this has been asked before, but I can find no reference.
It's good to travel hopefully, but nice to arrive sometimes
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Making an executable work on another computer

Post by skywalk »

Maybe run as admin or antivirus blocked?
Otherwise, what does your app do?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
RobKiwi
User
User
Posts: 19
Joined: Tue Oct 23, 2012 5:47 am
Location: Rawene, Hokianga, New Zealand
Contact:

Re: Making an executable work on another computer

Post by RobKiwi »

Thanks, that was quick: the program shows a series of small pictures to which the user responds. Do these need to be installed on the target computer? The executable seems large enough to contain these (246kB)
Don't think it's an antivirus issue. I did try to run as administrator.
It's good to travel hopefully, but nice to arrive sometimes
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Making an executable work on another computer

Post by skywalk »

Yeah, you should include the code you used to load your pics.
For example, did you use includebinary or includefile to load the images or are you loading them from a hard coded path at runtime?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Making an executable work on another computer

Post by Zach »

32/64 bit issue maybe? Thought I would think you'd get an error window or something for that..

Were you pictures included with Data statements, or otherwise packed into the EXE somehow? If not and they are actual external files, then that might also be a possible cause.
RobKiwi
User
User
Posts: 19
Joined: Tue Oct 23, 2012 5:47 am
Location: Rawene, Hokianga, New Zealand
Contact:

Re: Making an executable work on another computer

Post by RobKiwi »

Thanks for the suggestions. I don't have a 64 bit OS on either machine. I obviously have to learn something more abut loading pictures!
It's good to travel hopefully, but nice to arrive sometimes
RobKiwi
User
User
Posts: 19
Joined: Tue Oct 23, 2012 5:47 am
Location: Rawene, Hokianga, New Zealand
Contact:

Re: Making an executable work on another computer

Post by RobKiwi »

I have now copied the entire directory with images over and it works... obvious I suppose! Thanks folks.
Now to sort out a fonts problem...they re too big on the laptop! :P
It's good to travel hopefully, but nice to arrive sometimes
Post Reply