c++,c,sqlite,platform-independent
As user3477950 said, SQLite cannot know what BLOBs contain; to it, they're just an array of bytes. No conversion is done regarding endianness, representation, padding, etc.; the bytes it stores are exactly what you give it.
c++,serialization,binaryfiles,platform-independent
I solved the problem using the Qt Datastream class. Qt is part of my project anyway, so the additional effort is minimal. I can tell the Datastream object exactly if I want to save my floats using single precision (32bit) or double precision (64bit) and if I want to use...
c++,makefile,cmake,platform-independent
What I've done to get around this sort of thing is write a small wrapper Makefile around cmake. I put the Makefile at the project root, with contents like this: all: cmake cmake: [ -f build/CMakeCache.txt ] && [ "$$(pwd)" != "$$(grep 'CMAKE_HOME_DIRECTORY:INTERNAL' build/CMakeCache.txt | cut -d '=' -f 2)"...
c#,wpf,control,abstract-class,platform-independent
This is a very deep question but I will try to give you a response. I would start by saying that it is very good to separate the presentation logic from UI controls. Generally, you should peek a design pattern derived from MVP or use the current trend pattern, the...
c#,android,ios,unity3d,platform-independent
You can use Screen.height and Screen.dpi to calculate the physical screen height and then set a threshold, where you say it is a phone or a tablet. And maybe another threshold, if you want to differentiate a phablet. float screenHeightInInch = Screen.height / Screen.dpi; if (screenHeightInInch < 3.1) { //...