Questions tagged [portability]

Portable code can be run with little to no modification in multiple environments. Portable applications can be run from e.g. a USB drive without modifying a computer's environment.

Portable code can be run with little to no modification in multiple environments. This is typically achieved by either abstraction or specialization.

Abstraction is achieved by using a programming language or library which sits between your code and the platforms it runs on, attempting to obscure the differences between them. Any programming language which does not compile to native code attempts to provide some level of such abstraction.

Specialization requires writing code which is aware of the nuances of various environments and adapts to them. This technique is used by many *nix projects, often assisted by capability-detection tools.

Achieving the best possible portability may well involve using both methods in concert.

Portable applications can be run without modifying a computer's environment, such as by storing all configuration data inside the application folder rather than employing system-level configuration.

Such applications are designed to run without altering files on the computer's hard drive, including system config files, type associations, and the like. The goal of such portability is to ensure the application can run when side effects are undesirable, such as when installed on a removable drive or when a user does not have sufficient permission to install software.

1398 questions
-4
votes
1 answer

How to make a C# winform program completely portable?

So, I wrote a program, and I would like to make it runnable on a school computer. The problem is, I have no clue if there is the .NET framework installed, and we obviously have no administrator rights to install it. Is there any way I could…
-5
votes
2 answers

Running Program from USB drive

I have a C# winForms program that is designed to run off a USB drive from multiple PCs. When I connect the USB drive to another PC, the drive letter change. How can I make my drive letter consistent across all PCs, or make my program truly…
Onlytito
  • 137
  • 1
  • 2
  • 14
-9
votes
1 answer

windows memory formatting issue

I am trying to make this dynamic reallocation work in a portable fashion. My program accepts a line of text from a user and appends it to a buffer. If the length of text in the buffer is 20 or more, it removes the first 20 characters and moves…
1 2 3
93
94