Tôi đã yêu cầu một cuốn sách nhưng không ai gọi nó.
Tôi tìm thấy một cuốn sách có tên "Phát triển nền tảng trong C++: Xây dựng các ứng dụng Mac OS X, Linux và Windows".
Có đi một liên kết cho Amazon và mô tả cho người quan tâm:
http://www.amazon.com/exec/obidos/tg/detail/-/032124642X/
Cross-Platform Development in C++ is the definitive guide to developing
portable C/C++ application code that will run natively on Windows,
Macintosh, and Linux/Unix platforms without compromising functionality,
usability, or quality.
Long-time Mozilla and Netscape developer Syd Logan systematically
addresses all the technical and management challenges associated with
software portability from planning and design through coding, testing,
and deployment. Drawing on his extensive experience with cross-platform
development, Logan thoroughly covers issues ranging from the use of
native APIs to the latest strategies for portable GUI development. Along
the way, he demonstrates how to achieve feature parity while avoiding
the problems inherent to traditional cross-platform development
approaches.
This book will be an indispensable resource for every software
professional and technical manager who is building new cross-platform
software, porting existing C/C++ software, or planning software that may
someday require cross-platform support.
Build Cross-Platform Applications without Compromise
Throughout the book, Logan illuminates his techniques with realistic
scenarios and extensive, downloadable code examples, including a
complete cross-platform GUI toolkit based on Mozilla's XUL that you can
download, modify, and learn from. Coverage includes
- Policies and procedures used by Netscape, enabling them to ship Web
browsers to millions of users on Windows, Mac OS, and Linux
- Delivering functionality and interfaces that are consistent on all
platforms
- Understanding key similarities and differences among leading
platform-specific GUI APIs, including Win32/.NET, Cocoa, and Gtk+
- Determining when and when not to use native IDEs and how to limit
their impact on portability
- Leveraging standards-based APIs, including POSIX and STL
- Avoiding hidden portability pitfalls associated with floating point,
char types, data serialization, and types in C++
- Utilizing platform abstraction libraries such as the Netscape
Portable Runtime (NSPR)
- Establishing an effective cross-platform bug reporting and tracking
system
- Creating builds for multiple platforms and detecting build failures
across platforms when they occur
- Understanding the native runtime environment and its impact on
installation
- Utilizing wxWidgets to create multi-platform GUI applications from a
single code base
- Thoroughly testing application portability
- Understanding cross-platform GUI toolkit design with Trixul
Làm thế nào để bạn xác định nền tảng? Ví dụ, các chương trình ANSI C có thể được biên dịch trên nhiều nền tảng. –
Chương trình của bạn cần những tính năng gì? Bạn muốn hỗ trợ nền tảng nào? Nếu bạn dựa vào các tính năng được chỉ định trong POSIX, chương trình của bạn sẽ được di chuyển tới nhiều hợp nhất, nhưng có thể không biên dịch trên Windows - ít nhất, nó có thể sẽ không trừ khi bạn dựa vào tập hợp con của POSIX mà cửa sổ hỗ trợ. Một cách khác để làm cho chương trình của bạn di động là dựa vào một lớp trừu tượng có nhiệm vụ chăm sóc các nền tảng cụ thể cho bạn, như mạng và các tiện ích luồng của Qt. Vấn đề với cách tiếp cận đó là chương trình của bạn sẽ tốt nhất là di động với các hệ thống được hỗ trợ bởi lớp trừu tượng của bạn. – George
Ví dụ: một chương trình sử dụng ổ cắm. Nó có các triển khai khác nhau trong Linux hoặc Windows. – rigon