INF: Using Windows Global Heap Buffers (44730)
The information in this article applies to:
- Microsoft SQL Server Programmer's Toolkit 4.2
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q44730 SUMMARY
Although the Windows 3.x version of DB-Library (DB-Lib) is compiled with the medium memory model (near data pointers), all of the DB-Lib functions use far pointers for buffer parameters. This means that you can pass a far pointer to a buffer allocated with GlobalAlloc() to dbbind.
Be sure to use both the DB-Lib and the Windows LOCK and UNLOCK
functions around the code that references the global heap buffers.
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbinfo kbprogramming KB44730 |
---|
|