Page 1 of 1
Making an executable work on another computer
Posted: Tue Jul 02, 2013 3:06 am
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.
Re: Making an executable work on another computer
Posted: Tue Jul 02, 2013 3:12 am
by skywalk
Maybe run as admin or antivirus blocked?
Otherwise, what does your app do?
Re: Making an executable work on another computer
Posted: Tue Jul 02, 2013 3:21 am
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.
Re: Making an executable work on another computer
Posted: Tue Jul 02, 2013 3:39 am
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?
Re: Making an executable work on another computer
Posted: Tue Jul 02, 2013 3:39 am
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.
Re: Making an executable work on another computer
Posted: Tue Jul 02, 2013 3:45 am
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!
Re: Making an executable work on another computer
Posted: Tue Jul 02, 2013 3:58 am
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!
