cross-platform

Cross platform C++ filesystem watcher

↘锁芯ラ 提交于 2019-12-10 10:36:01
问题 I'm looking for a cross platform file system watcher, similar to the FileSystemWatcher class in .NET. As it's for a daemon/service, I'm not keen on Qt's QFileSystemWatcher. I'd really like to avoid it as I don't want to have a dependency on Qt as my program is going to be a daemon. I've also seen a proposal for such a class to be included in Boost, but as far as I know such a class has not yet been included. Is there a cross platform C++ file system watcher? 回答1: Qt is divided into modules,

Packaging to use to deploy cross-platform?

北慕城南 提交于 2019-12-10 10:35:44
问题 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 run. (I recognize contents would vary per destination OS, ie. binaries would be different, win exe vs unix binary etc, but for example config files may be the

Best practice discussion: When to favor a webview over a native UI in titanium?

喜欢而已 提交于 2019-12-10 10:35:20
问题 I'm currently working on a cross-platform mobile app and have gone through the process of creating the UI of my application using the given Titanium api. Compared to when you are building a mobile web application this is a time consuming task, because you don't have the possibility to work on the rendered UI like you can on a rendered webpage using firebug. Especially form creation is bothersome, so I decided to build my forms using html and render them in a Webview, which worked out pretty

Silverlight and C++ or C++ to C# ongoing code conversion?

限于喜欢 提交于 2019-12-10 10:33:42
问题 I am working on a drawing-based product where I want to produce versions for iPhone, desktop OS/X, Windows Tablets, Silveright-based browser, Windows Mobile, and Windows in that order of priority. For GUI portability, the classic answer is to keep the core in C++ and use Cocoa/Objective-C or WPF/C# thin layers. However, Silverlight complicates the choices. I wouldn't have any problem migrating my code into C++/CLI and maintaining a dual code base (with some macros to fake the C++/CLI

Unsdefined reference to library class members errors from caller program

核能气质少年 提交于 2019-12-10 10:13:31
问题 Additional Questions added below, 4/11/2011 I am developing a cross-platform set of shared libraries DLLs/Sos and tester programs in C++ though I have to be able to support C. The libraries will ship as object code only, but the tester program(s) will ship with source so our customers can have example code. For this reason I am designing the libraries to be loaded at runtime, i.e. dynamic linking using dlopen()/LoadLibraryA(). I am using g++ 4.4.3-4 on Umbutu 10.04 and VC++ 2008 on Vista/64

Is there a cross-platform exec in Boost?

一曲冷凌霜 提交于 2019-12-10 10:01:55
问题 I want to execute a sub-process in C++. I need it to work on Windows and Linux. Is there such a function in Boost? What is the standard way of doing it? 回答1: Poco and ACE have Process classes that do what you want. See Foundation->Processes->Process in Poco; Process.h/Process.cpp for Ace. I wouldn't be surprised if QT has something similar. As for how to do it, basically you wrap the OS dependencies and bury the details. Poco and Ace offer contrasting common methods. Poco tends to handle

fonts fallbacks: how to specify “font-specific” rules?

狂风中的少年 提交于 2019-12-10 08:43:41
问题 sometimes web-fonts don't load (for instance if hosted on google fonts) and fallbacks may need special treatment, because they can be consistently different from other specified fonts for instance: font-family:'webfontname', 'winfont', 'linuxfont', sans-serif; now the webfont should have letter-spacing:2px; but winfont should have letter-spacing:-4px; how can I manage this? thank you 回答1: You're using Google Web Fonts, so I suggest using the WebFont Loader, which will allow you to, for

Questions about web-languages interoperability in a cross-plateform project [closed]

感情迁移 提交于 2019-12-10 06:16:34
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I plan to create an application on iOS, Android and a website with AngularJS. But for not having to rewrite the business code on each app, I would like to reuse as much code as possible. To be able to execute the core of the project on any platform, I have to use a web

Libgdx - Check if a key is being held down?

吃可爱长大的小学妹 提交于 2019-12-10 04:00:31
问题 I'm using the java libgdx game library and im curious if I can tell if a key is being HELD, not pressed and let go. I need to know this because I'm going to play a shorter mp3 file if it is just pressed and a longer one if it is held. 回答1: Yes, you can easily check they either via Gdx.input.isKeyPressed(Input.Keys.XXX) or by implementing an InputProcessor. public class MyInputProcessor implements InputProcessor { public boolean keyPressed; @Override public boolean keyDown(int keycode) { if

Programmatically disable 'printing to file'

我的未来我决定 提交于 2019-12-10 03:30:15
问题 We have an existing cross-platform (Mac, Windows, Linux) application written in Java, that programmatically sends a document to the default printer without showing a print dialog. Across different platforms it is possible to set up a printer to print to file. For example in Windows it is possible to set the XPS Document Writer as the default printer, or to change the properties on a printer such that it keeps a file copy of all documents. Is it possible to detect this? I'm open to any