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.
Making an executable work on another computer
-
- User
- Posts: 19
- Joined: Tue Oct 23, 2012 5:47 am
- Location: Rawene, Hokianga, New Zealand
- Contact:
Making an executable work on another computer
It's good to travel hopefully, but nice to arrive sometimes
Re: Making an executable work on another computer
Maybe run as admin or antivirus blocked?
Otherwise, what does your app do?
Otherwise, what does your app do?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
-
- 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
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.
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
Re: Making an executable work on another computer
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?
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
-
- 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
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.
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.
-
- 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
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
-
- 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
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!
Now to sort out a fonts problem...they re too big on the laptop!

It's good to travel hopefully, but nice to arrive sometimes