platform-specific

Developing for different platforms individually, does anyone recommend it?

I know it is easy to recommend several cross platform libraries. However, are there benefits to treating each platform individually for your product? Yes there will be some base libraries used in all platforms, but UI and some other things would be different on each platform. I have no restriction that the product must be 100% alike...

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 do I determine which platform version is required?

This frequently comes up: I've built software, and possibly used some new language / platform / standard library features that are available on some version (say, Java 1.6.10 or PHP 5.2) upwards, but of course I can't exactly remember. I'm only sure that it runs at least on the version I'm using (which is typically the newest version ava...

WMI Cheatsheet?

Is there a cheatsheet available for WMI? Like what can be queried, where to query it from? ...

C#/Mac: Path.GetInvalidPathChars() and Path.GetInvalidFileNameChars() result

What does this display on OSX? Can anyone run this on their machines using Mono? foreach (char c in System.IO.Path.GetInvalidPathChars()) { Console.Write((byte)c); Console.Write(", "); } and what does this display: foreach (char c in System.IO.Path.GetInvalidFileNameChars()) { Console.Write((byte)c); Console.Write(", "); ...

Determining whether compiling on Windows or other system

Hi, Im currently developing a cross-platform C application. Is there any compiler macro which is defined only during compilation on Windows, so I can #ifdef some Windows specific #includes? Typical example is selecting between WinSock and Berkeley sockets headers: #ifdef _WINDOWS #include <winsock.h> #else #include <sys/sock...

Is a C .lib file platform specific?

I'm trying to use an API for a proprietary interface device on an embedded system (Freescale HCS08), and the provided files include headers (.h) and libraries (.lib). The header compiles fine with the rest of my code (standard C), but when trying to link against the library I get memory errors saying the file might be corrupted. My und...

C corner case and trap.

I am surprised why this works? short main [] ={}; This is the only content in the file. It compiles correctly on gcc. But when i run it prints segmentation fault. When i rename main, compiler gives errors. Can anyone explain me what is going on here. ...

Runtime or compile time for platform-specific libraries?

I'm creating a library in C++. It links against Windows libraries on Windows and Linux libraries on Linux. It's abstracted, all is well. However, is it feasible to dynamically detect, load and use libraries (and copying header files for use) so it could be used on any platform if it was running under LLVM JIT? ...