cross-platform

How to override wxApp::MainLoop properly (wxWidgets)?

I'm writing a cross-platform application. Is there a way in wxWidgets to define my own event loop? How to do that? I want it look like an ordinary windows PeekMessage DispachMessage loop: for(;;) { while(PeekMessage(...)) // dispatching all pending messages { // traslating, dispatching messages // also do something wit...

Node-based designer software?

Is there any cross-platform node-based designer software for free? Something like Graphviz meets FreeMind. FreeMind would be otherwise great if there was no that central point. I don't want software where you position the nodes in pixel-perfect places. I want to extend existing nodes like in FreeMind. Graphviz in other hand explodes at ...

Best folder structure for C++ cross-platform library and bindings

I am about to begin work on a cross-platform library to be written in C++. Down the road, I intend to implement bindings for other languages such as Python, Java, etc. The library needs to be available on the major platforms: win32, Linux and Mac OSX. Although the application is really a library, some basic console programs will be bu...

Best way to test on different environments ?

I am working on a Java project which needs to work on both Mac OS X and Windows. There are many variables which store paths to various resources and files. Is the best way to deal with them, putting them all in a separate class (say, Constants) and maintain two branches for the file in SVN ? Update : It is not just an issue of path se...

Can you call a C# DLL from a C DLL?

I've built a DLL in C#. Now I want to use the R Environment to call functions in that DLL. The R environment supports calling unmanaged C/C++ DLL's but not into .NET DLL's. So my question is, can I call functions in a C# DLL from a C/C++ DLL? If so, do you have a link to info about how to do this? ...

FUSE-like virtualized network adapter?

FUSE enables you to write stuff easily like SQL database, GMail or even Wikipedia articles as your local filesystem files. Is there something similar for networking world? VTUN seems fine but works only in *nix OS. ...

Cross-Platform Generic Text Processing in C/C++

Hi, What's the current best practice for handling generic text in a platform independent way? For example, on Windows there are the "A" and "W" versions of APIs. Down at the C layer we have the "_tcs" functions (like _tcscpy) which map to either "wcscpy" or "strcpy". And in the STL I've frequently used something like: typedef std::ba...

Bluetooth from the Command Line

How do I access files on another device/machine over Bluetooth from the command line? ...

Need advice choosing a DB engine with easy design and editing frontend

I need to develop a database-based application that offers its users an easy-to-use UI to extend the DB as well as view and edit its contents. Its users will not be IT-savvy. They're the kind used to filling their data into several excel sheets. Up to now, those excel data sheets have been manually edited, causing consistency errors. A...

Are there equivalents to pread on different platforms?

I am writing a concurrent, persistent message queue in C++, which requires concurrent read access to a file without using memory mapped io. Short story is that several threads will need to read from different offsets of the file. Originally I had a file object that had typical read/write methods, and threads would acquire a mutex to cal...

Are there known issues with using sqlite and file locking on different platforms?

I'm using sqlite to do an index of a proprietary file, and the database will be accessed with multiple threads (using different sqlite handles) for reading and writing. I know that sqlite locks the file in order to provide concurrency for readers/writers, and depends on the OS file api for locking. This is all fine on windows and linux...

How to make a cross-platform c++ inline assembly language?

I hacked a following code: unsigned long long get_cc_time () volatile { uint64 ret; __asm__ __volatile__("rdtsc" : "=A" (ret) : :); return ret; } It works on g++ but not on Visual Studio. How can I port it ? What are the right macros to detect VS / g++ ? ...

How to measure user time used by process on windows?

On linux we can use "time" command. Or from C++: #include <sys/time.h> #include <sys/resource.h> int getrusage(int who, struct rusage *usage); How to do a closest thing to that on windows ? ...

Any lib for multi-threading cross-platform for Delphi AND FreePascal?

I'm aware of some Windows Thread Libs for Delphi(OmniThread Lib, BMThreads, etc). But is there a lib that is built to be cross-platform and that can both be used under Delphi and FreePascal? ...

How to execute a Unix shell script from Windows

I've got an AIX script I would like to run from a .NET application. I'm not opposed to kicking off a Windows batch file if that gives me better options. Most of what I've seen on Google relates to using a tool such as rsh or Plink, or using ssh or telnet. I don't have access to rsh or Plink (although I do have PuTTY and could probably g...

Cross-platform partition management library?

Hi, I'm looking for some sort of partition management library (preferably a Python one, but anything works) that will function on both Windows and Linux. (For working with USB devices, specifically, but any harddisk tool should do) We'd much rather not implement two different libraries as that makes it harder to maintain, but so far we...

Is there a cross-platform GUI framework for C#/.NET?

Let's say just for the joy of it, I decide that I don't want to write desktop applications in Java any more, instead want to switch to using C#. I want to be able to build an application that will run on some mainstream Linux distribution, and a recent release of MS Windows. It will have a GUI component. In Java I can build an applic...

Cross-platform memory allocator sbrk/virtualalloc

I am wondering if there is a cross-platform allocator that is one step lower than malloc/free. For example, I want something that would simply call sbrk in Linux and VirtualAlloc in Windows (There might be two more similar syscalls, but its just an example). ...

Is there a reliable way to keep Compact Framework and Desktop projects in sync with Visual Studio 2008?

I am working on an SDK that is targeting both the Full/Desktop .Net Framework and the Compact .Net Framework. As such I have a solution that has projects for the Compact Framework and the full framework. The project files contain the same source files, or thay should. Some of the developers that are working on this SDK with me are onl...

How to conduct performance tests on libraries written in different programming languages?

The problem is: Given a number of programming libraries with similar or equal scope (e.g. XML parser, regex, markup, ...); are there tools, with which one can run performance tests on these libraries and compare (and generate reports), even though the libraries may be written in different programming languages (such as java, C#, ruby, py...