How can I build a program in Visual C++, so it would work on other computers and operating systems too? I have tested my program and it often gives some kind of side-by-side configuration error. What files do I necessarily need to add?
How can I build a program in Visual C++, so it would work on other computers and operating systems too? I have tested my program and it often gives some kind of side-by-side configuration error. What files do I necessarily need to add?
You need the target machine to install the Visual C++ runtime. Then it will work for every program you try to run.
I have the runtime for VS 2008, if you need it. Unless you use VS 2005 or earlier, it's the one you need.
This applies only to Windows, of course.
VC++ won't run on any other platform than Windows.
You mean how to run Windows programs on the Mac or Linux boxes?
If (you will run the program same operaing systems)
it is not problem just install required runtimes
else
you have to look cross libraries that have multi operating system implementation like cygwin or socket libraries
But even cross-platform libraries still require the code to be compiled for the particular OS - most OS's do not share the very basic things like:
- Executable file format and/or load address.
- DLL/Shared libraries to access the OS itself.
So if you want to move from one version of Windows to another, that's easy. Moving from Windows to Linux or Apple, you have to compile the code over again - and if the code isn't written with at least some portability in mind (or really trivial), it probably won't compile.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Unless you compile it as C++/CLI, in which case your executable may be able to run unmodified on a Linux box with mono. Which I've never tried.
--
Computer Programming: An Introduction for the Scientifically Inclined
You'd have to be very careful to avoid all unmanaged code.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Yeah. It was more of a theoretical possibility...
--
Computer Programming: An Introduction for the Scientifically Inclined