Click to See Complete Forum and Search --> : Portability of a simple app
cikastef
January 13th, 2007, 04:19 PM
I wrote a simple app in VS2005 C++, but I can't get it to work on my friends computer. I compiled, built it and sent the .exe file to my friends. They say that the file can't be opened, it gives them some weird errors. Does anyone know how to make it portable so that other people can use it?
Thanx a lot :)
Zaccheus
January 13th, 2007, 05:26 PM
Does your friend have .net v2 installed?
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en
:)
cikastef
January 13th, 2007, 09:30 PM
Does your friend have .net v2 installed?
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en
:)
No he doesn't, even though I might tell my friend to install it, what would I do if I was to ever commercialy distribute my software? Is there like an intergrated system, where I can send 'customers' one file which has everything they need to run the app?
Thanks for the answer
Zaccheus
January 14th, 2007, 05:16 AM
It depends.
It's possible to do some very clever stuff with installation packages, but I'll keep it simple:
If you are distributing your software via a CD-ROM, then you could also put the .net v2 installer onto the CD (I think Microsoft allow this but you'd have to check).
If you are making your software available for download, it is better to say ".net v2 required" with a link to the download site (so people who already have it don't need to download it).
In either case, tell the customer that .net v2 needs to be installed first and make it available to them in some way.
Generally speaking, it is always a good idea to state what your software requires, even if you just say "Runs on Microsoft Windows".
:)
cilu
January 14th, 2007, 06:48 AM
I wrote a simple app in VS2005 C++, but I can't get it to work on my friends computer. I compiled, built it and sent the .exe file to my friends. They say that the file can't be opened, it gives them some weird errors. Does anyone know how to make it portable so that other people can use it?
Thanx a lot :)
See this FAQ (http://www.codeguru.com/forum/showthread.php?t=408061) about manifests and redistributables.
Zaccheus
January 14th, 2007, 06:58 AM
See this FAQ (http://www.codeguru.com/forum/showthread.php?t=408061) about manifests and redistributables.
That does not apply if you are writing a simple .net application.
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.