Author Topic: How do I run my program in any other computer?  (Read 385 times)

Offline sleepymario

  • Single posting newcomer
  • *
  • Posts: 3
How do I run my program in any other computer?
« on: January 19, 2018, 05:56:38 am »
I tried changing the extension to .jpg and compress it, but when changed the extension to .exe again in the other computer, it says "can't run this application in this device" or something like that.
Do I have to compress the whole program folder or is it another thing? Please, help!

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1914
Re: How do I run my program in any other computer?
« Reply #1 on: January 19, 2018, 04:54:15 pm »
I tried changing the extension to .jpg and compress it,
why would you do that?

it says "can't run this application in this device" or something like that.
Only a error message with "something like that" is not exact enough to help... We have no crystal ball we can ask for future information. Give all information you have and give it exactly with the full wording. And please tell us the operating system of the target system and the system you compiled your program. Also compiler name and version (NOT CODEBLOCKS version and name, but the COMPILER (note: codeblocks is not a compiler) https://en.wikipedia.org/wiki/Compiler vs https://en.wikipedia.org/wiki/Integrated_development_environment )

Do I have to compress the whole program folder or is it another thing? Please, help!
I have the impression you don't know what compression is: https://en.wikipedia.org/wiki/Data_compression This is not done with renaming a file....

If you want to make the program smaller i can recommend UPX: https://en.wikipedia.org/wiki/UPX one of the best out there...
If your program uses DLLs or other resources you have to compress all resources into one archive. For this i would recommend 7zip: https://en.wikipedia.org/wiki/7-Zip