I wanted to ask you something, I programmed a GUI in C++. I wanted to know if C++ is as portable as C code, I mean, can C++ code be easily ported to other platforms like Windows, Linux, Mac, XBox, etc? Are there any advices about this? Are all C++ functions supported in other platforms?
Thx in advance! Regards, Joy
>I wanted to know if C++ is as portable as C code<
Depends on the application you wrote......
>I mean, can C++ code be easily ported to other platforms like Windows, Linux, Mac, XBox, etc?<
Not really. Espically if your creating win32 centric GUI's.....
Generally speaking, C++ is just as portable as C code as long as it's ANSI standard. Speaking of GUIs, most are not portable, because graphics and windowing tends to depend on the operating system i.e. Windows/Linux.
For a specific answer, specific facts would be helpful ;)
Sure, I know... In this case, windows and controls management code is independient of the OS. If Im not wrong, there are only 3 or 4 functions that must be provided for each OS/platform (input management and drawing functions)...I just wanted to know if functions like <dynamic_cast> and all those c++ functions can be supported by other systems.
Mhhh...is the STL supported in Mac and Linux? Can a program that uses the STL be considered 'portable'?