multiplatform

Is .NET a write once, run anywhere (WORA) platform like Java claims to be?

I remember Sun's slogan so vividly... "Write Once, Run Anywhere". The idea being that since programs are compiled into standard byte codes, any device with a Java Virtual Machine could run it. Over the years, Java seems to have made it onto many platforms/devices. Is this the intention or was it ever the intention of .NET. If so, what ...

getting elapsed time since process start

I need a way to get the elapsed time (wall-clock time) since a program started, in a way that is resilient to users meddling with the system clock. On windows, the non standard clock() implementation doesn't do the trick, as it appears to work just by calculating the difference with the time sampled at start up, so that I get negative v...

Initializing a union with a non-trivial constructor

I have a structure which I create a custom constructor to initialize the members to 0's. I've seen in older compilers that when in release mode, without doing a memset to 0, the values are not initialized. I now want to use this structure in a union, but get errors because it has a non-trivial constructor. So, question 1. Does the de...

UI for multiplatform .net Application

I want to get my programme running on Linux but I don't kow what to do about the UI. Right now I'm using WPF but it probably won't be supported by Mono too soon. The UI controls are edited directly by the non-UI code. Switching to Windows Forms would be easiest but I think it doesn't really look good on Linux. What I am dreaming of rig...

Choice of language for portable library

I want to write a library which will be dynamically linked from other programs running on modern operating systems like Windows, Linux and OS/X (i.e. it will be deployed as a .dll or .so module). What is the most appropriate language in that case? Should I stick with plain C? Or is C++ also ok? ...

Multiplatform Installer

I am looking for a recommendation on an installer program. The installer needs to support mulitple OS's - Solaris, Linux and Windows. I have three build machines each running one of the OS's. Currently using the same code base - JAVA and C/C++ for all three. ...

Multi platform mobile application

I am willing to develop a mobile application. I wish to have something working for android, windows mobile, symbian and blackberry. Which is the best way to do that? I had read here: You could aim to wrap the sections of the platform specific APIs (iPhone SDK etc.) that you use with your own interfaces. In doing so you are e...

C++ OpenGL Window and Context creation framework / library

I'm searching for an multi platform OpenGL framework that abstracts the creation of windows and gl contexts in C++. I'd like to have an OO representation of Window, Context & co where i can instantiate a Window, create a Context and maybe later set the window to fullscreen. I'm thinking about implementing this myself for xgl, wgl and ag...

Multiplatform C++ Project: Inclusion of platform specific sources

I have for some of my classes different implementations per OS. My source structure is like this: include/AExample.h include/windows/WindowsExample.h include/linux/LinuxExample.h src/AExample.cpp src/windows/WindowsExample.cpp src/linux/LinuxExample.cpp the A* classes are the interfaces for the specific implementations My current bu...

High-quality libraries for C++.

We all know about Boost. What other free C++ libraries are worth using? Why? Are they easily usable with common compilers? ...

C++ API for multiplatform development

I want to learn C++ to work on various platform (primarily, Linux and Windows). I have come across few solutions like the Boost C++ library, Qt toolkit, etc that can be used to write programs which will compile on both the platforms. I want to know from the community, what type of library would you refer to use and if any of you had exp...

Mutliplatform application: (Automated) Testing for Mac OSX howto?

I have a firefox based application(ff extension) that is supposedly/allegedly working on Mac OSX too. I wish to make the application formally supported in Mac OSX. For that, I need to incorporate automated tests in the build process specific to Mac OSX. With ubiquitous availability of Windows and Linux as cloud offering, executing autom...

Conditional sections in AIX Makefiles

How do I make a makefile that works on AIX, Linux and SunOS and has the ability to provide different compiler options for each environment? I have access to an environment variable which describes the OS, but the AIX make utility does not like ifeq, so I can't do something like: ifeq($(OS), AIX) CFLAGS = $(CFLAGS) <IBM compiler opt...

What is the best way to find wide string headaches such as L"%s"?

Here is an example of one of the headaches I mean: We have a multiplatform project that uses mostly Unicode strings for rendering text to the screen. On windows in VC++ the line: swprintf(swWideDest, LEN, L"%s is a wide string", swSomeWideString); compiles fine and prints the wide string into the other wide string. However, this sho...

How do you write for *all* phones/mobile devices simultaneously?

We create non-game programs that run on mobile devices; iPhones, Windows Mobile, Android, Palm WebOS and the like. Our main program is written in C# for Windows Mobile and we've been asked to port it to iPhone. We are not looking forward to: The learning curve to pick up Objective-C, XCode, and Cocoa Touch. The pain of maintaining tw...

How to make qmake compile multiple cross platform binaries

I'm using QT Creator on a project and was wondering if there's a single command to compile the project to a Mac, Windows, & Linux binaries so I can easily send them to other computers for testing without having to send over the whole source code. Currently I'm running the QT Creator on Mac OSX if that matters. ...

Looking for Multi-Platform Memory Leak detection programs.

Ok I have a school assignment to basically pick 3 memory leak detecting programs and run them on a bunch of c++ programs that the teacher supplies us and see how they compare to each other. These 3 programs have to be multi-platform and this is where I'm stuck. I have only been able to find one called valgrind which works on both MAC OSX...

Is there any disadvantages to a language being platform independent?

I'm working on a paper about multi-platform programming and I'd like to include sections on advantages/disadvantages. From my understanding; having any application be multi-platform is a huge selling point for the developer since it enables almost any computer user as a potential buye, among other things. I'm just trying to figure out po...

What version of the .NET framework is installed on Windows XP, Vista, and 7?

I have an application that uses the .NET framework 3.5. I am building this application for a college to help students to study. Most students usually have Windows XP SP2, Windows Vista, or Windows 7. (Sorry Mac users! The Mac version will come out in about 6 months) What version of the .NET framework is installed on Windows XP, Vista, an...

Reading file resource in Unix and MacOS

Hi, I am writing my first wxWidgets application which aims to be cross-platform. The program uses dll file for plugins and in Windows, reads dll resource part for information regarding plugin name, author name etc. I have never used Unix or MacOS (little Linux though) and am wondering whether compiling binary for these other OSes will r...