开发者

Cross Platform Tray App

开发者 https://www.devze.com 2023-04-11 18:07 出处:网络
I\'m looking to develop a type of system tray/dock application that will run in the background and perform some tasks开发者_JS百科. I want to target Windows and OSX. After doing some research and base

I'm looking to develop a type of system tray/dock application that will run in the background and perform some tasks开发者_JS百科. I want to target Windows and OSX. After doing some research and based on my own skillset, I'm going to go with C++. It will monitor a specified directory and perform actions based on the files in the directory. It will require a simple form (somewhat like Dropbox) to modify simple user settings.

My question is how I should organize the project. Can I create a C++ dll or similar that I can use on both platforms and use WPF or WinForms on Windows and Cocoa on OSX as just a front-end to access the library? Most of the heavy-lifting will be done by the library so the interface isn't a primary focus. What's involved in creating a cross-platform C++ library?

Thanks.


The best practice is to make a cross platform library. I would stick with static libraries if you can help it. Then create varied applications for your platform specific needs.

It is better to "pull in" functionality from the library, as opposed to writing extensions on top of the library. That way you get to pick and choose what is relevant for the platform.

I would look at Qt for GUI front end. It is by far the best toolkit I've used.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号