I need to dynamically create directory based on input filenames in C++ and it must be cross-platform compatible. I am also familiar with the boost library. The input to the directory creation function will be a string with the following prototype:
void createDirectory (std::string name)
Sample code would be much appreciated.
...
I am writing a cross-platform compatible function in C++ that creates directories based on input filenames. I need to know if the machine is Linux or windows and use the appropriate forward or back slash. For the following code below, if the machine is Linux then isLinux = true. How do I determine the OS?
bool isLinux;
std::string sla...
I searched for some literature about cross-platform programing development and I didn't find something really good.
I'm not looking for a Virtual Machine for cross-platforming like Java does.
Is there any book or literature about this?
...
I'm evaluating different cross plattform mobile frameworks. I like Phonegap and think I understood how it works, but am now looking at QuickConnect and have a much harder time to figure it out, especially how it compares to Phonegap.
Can anybody help me to define the advantages or differences of QuickConnect in comparison to Phonegap?
...
I love just about everything about the DFL GUI toolkit for D except that it only works on Windows because it's basically a pretty, high-level wrapper around the Windows API. How hard would it likely be to simply port such a toolkit to Linux (I don't really care about any other OS besides Windows and Linux) using Winelib? What are the o...
Simple case
I have a Python program that I intend to support on both *nix and Windows systems. The program must be configurable, at least globally. Is there a cross-platform way to address the configuration file?
I.e. I want to write instead of
import platform
if platform.system() == "Windows":
configFilePath = "C:\MyProgram\mainc...
Hi
Does anyone know of a cross-platform way to resize a native window - by native i mean one that runs inside of Windows', Mac's or Linux's windowing toolkit?
Any help would be appreciated!
...
I'm looking to save myself some effort further down the line by making a fairly generic makefile that will put together relatively simple C++ projects for me with minimal modifications required to the makefile.
So far I've got it so it will use all .cpp files in the same directory and specified child directories, place all these within ...
I am working on a programming language. Currently it compiles to C. I would like to be able to include parallel programming facilities natively in my language so as to take advantage of multiple cores. Is there a way to write parallel C programs which is cross-platform? I would prefer to stick to straight C so as to maximize the number o...
In java, a symbolic link in a Unix environment can be detected by comparing the file's canonical and absolute path. However, this trick does not work on windows. If I execute
mkdir c:\foo
mklink /j c:\bar
from the command line and then execute the following lines in java
File f = new File("C:/bar");
System.out.println(f.getAbsoluteP...
Hi there,
Was just wondering if any of you already coded a http get request using glib?
Is it possible and how ?
I just want to call an simple urls with parameters, and the code must be working on gnu/linux, windows and mac.
If it is not possible with glib, have you any suggestion about what to use for that purpose (in a portable pers...
Hi,
I was looking into PhoneGap and Titanium framework, and I did not clearly understand how to they work, let's suppose I have already developed an app for android or iphone, can I run this app on another mobile with a different OS with PhoneGap or Titanium help?
Or I have to develop again my app with PhoneGap/Titanium framwork?
In thi...
I'm writing a java application. Currently this produces a file called "trace.txt" in the same directory the .jar file lives. This can sometimes cause issue with file permissions, eg writing to C:\Program Files\Foo\trace.txt.
After a bit of research on SO it seems the general opinion is to log to Application Data\Foo\ for the given user...
If you are not developing for an Apple platform, are there reasons to choose Objective-C? I know of GNUstep (which I do not find visually pleasing), but what else is there?
If you want to develop for multiple platforms, including OS X or iOS but also Linux or Windows, when might Objective-C be a good choice?
...
It looks like there are a number of cross-platform solutions for smartphone app development, accessible by web developers.
Here are some I've found -- what are the pros/cons of each, from the perspective of a web developer's skillset (CSS/AJAX (jQuery)/LAMP backend)?
appMobi
appcelerator Titanium
PhoneGap
Rhodes
And a few others ...
Is there a way to convert processing apps to native iPhone app's?
Alternatively... there's a nice jQuery library for processing, but can that be used with the various cross-platform "develop using HTML/JS, get a native app" conversion?
...
Hey guys - I just wrote an app using c# and ready to deploy it. Never deployed a c# app before.
I deployed it and VC# outputted a .application file, application folder, and an installer. One of my users ran the installer (Windows 7) and was prompted to download/install the .net framework - which took upwards of 10 minutes. This is not a...
Hello, I've only ever done server, web, and database programming, never any desktop programming. I now want to learn and have a small project I want to attempt, but am not sure which library/framework to use.
I'd like to create a small cross-platform app that runs in the system tray (and whatever the OSX equivalent is), and listens for...
I would like to be able to execute a script to draw out the current cache process information. Has anybody done much scripting with cache? Is there an easier way to basically log the process information? The end result of this is I would like to present this information in a way that I could log it into Splunk
...
Hi All,
I'm still new to the Ada programming world so forgive me if this question is obvious.
I am looking at developing an application (in Ada, using the features in the 2005 revision) that reads from the serial port and basically performs manipulation of the strings and numbers it receives from an external device.
Now my intent...