cross-platform

Switching to Linux for Windows development, bad idea?

I was contemplating switching to Linux for C++ development, coming from a Windows environment. Is this a bad idea? My workplace uses Windows and Visual Studio for our projects (some C# and java too, but right now I'm only developing in C++). If they decide to put me on a C# project, would development still possible (mono?)? What are the...

Are there any open source cross platform NAT punch throughs?

Are there any open source cross platform NAT punch throughs? ...

How to atomically rename a file in Java, even if the dest file already exists?

I have a cluster of machines, each running a Java app. These Java apps need to access a unique resource.txt file concurently. I need to atomically rename a temp.txt file to resource.txt in Java, even if resource.txt already exist. Deleting resource.txt and renaming temp.txt doesn't work, as it's not atomic (it creates a small timefram...

What is a good scripting language to integrate into high-performance applications?

I'm a game's developer and am currently in the processing of writing a cross-platform, multi-threaded engine for our company. Arguably, one of the most powerful tools in a game engine is its scripting system, hence I'm on the hunt for a new scripting language to integrate into our engine (currently using a relatively basic in-house engin...

Good asynchronous TCP based protocol for non-realtime games?

I'm developing open source cross-platform platform for non-realtime multiplayer chat/game system. Like card games, boardgames, turn-based, etc. Servers are spawned server-side (not from users computer). Client has these game modules or downloads game module and then runs them. I've come to conclusion that best protocol is "IRC-like". S...

Referencing a platform-specific library from a non-specific .NET app

I often need to include little bits of native code in my C# apps, which I tend to do via C++/CLI. Usually I just need to use a C++ library for which there exists no good alternative for .NET; but sometimes performance is a factor too. This is problematic; doing so means adding a reference to a specific x86 or x64 library. Most librari...

How mature is SDL for iPhone?

For a while I've been thinking of trying to do a port of one of my favorite classic PC games, The Ur-Quan Masters (aka Star Control 2) to the iPhone. UQM uses SDL for all its graphics, sound, input and other gamey stuff and there does seem to be a port of SDL to iPhone but it doesn't look very mature at this point. Has anyone put the iP...

Monitoring files/directories with python

I'm looking for a cross-platform file monitoring python package? I know it is possible to monitor files on windows usung pywin32, and there are packages working on Linux/Unix but does anyone know about a cross-platform one? ...

cross platform unit testing in C

I'm starting a new project and decided that I should give this unit testing thing that everybody keeps talking about a try. The project is a set of C libraries (so no UI or user interaction testing is necessary) and aimed at being cross platform, with Linux, FreeBSD and Windows being my first priority and OS X planned once the first r...

vector resizing - portable way to detect.

I have a vector that I am loading with a know amount of elements (N). The processing dynamically creates new elements, which are appended to the vector. I am expecting about 2 * N additional elements to be created, so I resize the vector to 3 * N. If the additional elements exceed that, I would like a program abort, rather than ...

Remotely Programming

I'm doing my development work on my Windows machine, but my compiling on a remote Linux machine. What I currently do is start an X server on Windows, ssh into the Linux machine, then do the development remotely. What I'd like to do is edit my source on the Windows machine, and have it automatically copy files over to the Linux system w...

OpenGL cross platform window

I'm looking for a window... ugh... thing for OpenGL, I've been using SDL but more recently found that its not quite up to my needs in at least any code I've seen. I'd like to find some GUI library that allows me to develop using OpenGL (and SDL if at all possible) with a menu bar, possibly options at the side, and a working-out-of-the-bo...

long long alignment problem (MSVC vs. GCC)

I'm writing C cross-platform library but eventually I've got error in my unittests, but only on Windows machines. I've tracked the problem and found it's related to alignment of structures (I'm using arrays of structures to hold data for multiple similar objects). The problem is: memset(sizeof(struct)) and setting structures members one ...

How do I set a minimum window size in wxWidgets?

This is the hierarchy of widgets I've got: Frame > wxBoxSizer > wxPanel > wxBoxSizer > wxFlexGridSizer (2 columns, 9 rows), with assorted form fields and buttons inside. The first BoxSizer is to place the panel in, and the second is to make a border around the FlexGrid. Everything looks nice, and the frame can expand properly if the w...

Packaging to use to deploy cross-platform?

On windows applications are typically packaged as MSI, on Redhat Linux as RPM, what would be a best open source packaging method that could be used to deploy applications to all platforms including different flavors of unix and windows? Contents would include exes, unix binaries, java jar files, user data, even database scripts to be ru...

OS and implementation independent access to the keyboard?

I made an FPS game with MSVC++ which is running very well on Windows. But now I am trying to make it portable (at least I want to create a linux and a Windows version), so I decided to change the IDE to Code::Blocks and the framework to wxWidgets. But it seems the virtual key codes and scan codes are different on different systems. Earl...

How do you get the ip address from a remote machine?

I'm writing c++ code that I need to run on both windows and linux and I'm looking for a function call that will return the ip address of the box the app is running on. Is there such one? ...

Cross-platform development - Go with a cross-platform UI toolkit or native on multiple platforms?

I'm looking for some arguments to pitch to my boss and fellow developers. We're currently finishing up the preliminary UI mockups and getting ready to move on to the next phases of development. In the meantime, I've been digging through the depths of the Carbon, Win32, and wxWidgets APIs attempting to make some of the controls have a...

C++ Header files - put them in one directory or merged in a tree structure?

I have a substantial body of source code (OOFILE) which I'm finally putting up on Sourceforge. I need to decide if I should go with a monolithic include directory or keep the header files with the source tree. I want to make this decision before pushing to the svn repo on SourceForge. I expect a lot of people who use it after that move...

How to get a mixed SSIS-J2EE system to communicate via messaging?

I'm currently developing an ETL solution which, for various reasons, include SSIS components as well as J2EE services. I need the various components to communicate asynchronously via messaging queues. However, the obvious constraint is that SSIS only integrates with MSMQ while it obviously makes sense to use JMS on the Java side. I h...