Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

Asynchronous Operations

Previously, you looked at features of ODBC that are used to support asynchronous operations. Basically, ODBC provides a mechanism that allows you to return from a call such as SQLExecute() immediately and then occasionally poll to see whether the operation has completed yet.

This mechanism is provided for single-threaded operating systems, such as Win3.1, and isn't appropriate for use in the Win32 environment, which allows you to start a new thread for blocking calls that may take an arbitrary period of time to complete.

Unfortunately, ODBC 3 doesn't provide for true asynchronous operations (overlapped I/O) in the Win32 environment.

Share ThisShare This

Informit Network