Новые книги

The tutorials start with the most basic Windows program, the windows equivalent of "hello world!", Winnie. Then we move on to a more Generic program, which serves as a skeleton for a simple Windows application. Then we discuss various Controls. Using these controls one can build a complete dialog-based application, whose main window is a dialog. We are then ready to discuss a Generic Dialog, a framework with which one can quickly build specific dialogs.

To do some simple graphics one needs a Canvas object. You use Pens and Brushes to paint on the canvas.

More advanced topics include programming with Threads with a practical example of a Folder Watcher — a program that watches directories for changes.

Modern windows programming requires some knowledge of the Shell API, which leads us to the discussion of OLE and COM. We show how one can encapsulate OLE in C++ to create Smart OLE. OLE is also used in Automation, which lets your application talk to other applications.

Controls are nothing but specialized windows. You can easily create your own controls, as evidenced by the Splitter Bar tutorial.

For graphics programmer, we give a short introduction on using Bitmaps for animation and a more advanced tutorial on using Direct Draw.

empty("0")

Учебник РНР
Назад Приложение B. Переход от PHP 3 к PHP 4 Вперёд

empty("0")

Самое, возможно, спорное изменение произошло в поведении empty(). Строка/String, содержащая только символ '0' (нуль), теперь считается пустой/empty, в отличие от PHP 3.

Это имеет смысл в web-приложениях, когда все поля ввода/input возвращают строки, даже если запрашивается цифровой ввод, с учётом возможностей PHP по автоматической конвертации типов. Но, с другой стороны, это может нарушить работу вашего кода более утончённо, давая неправильное поведение, которое трудно отследить, если вы не знаете, искать.


Назад Оглавление Вперёд
Инициализаторы Вверх Отсутствующие функции