How To Create an OLE Server to Implement "Thunking" (141939)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q141939 SUMMARY
An out-of-process OLE server (that is, an EXE) may be called by either a 16-
bit or 32-bit program. Hence, it can be used as an interface between a 16-
bit program that requires the services of a 32-bit DLL, or a 32-bit program
that calls functions inside a 16-bit application/DLL. This permits the OLE
system DLLs to handle any necessary "thunking" of the 16-bit to 32-bit or
32-bit to 16-bit translations.
This article demonstrates how the functions contained in a 16-bit DLL can
be called from a 32-bit program using an OLE server as an intermediary.
REFERENCES
"Microsoft OLE Today and Tomorrow: Technology Overview," created December,
1993. Found under Backgrounders and White Papers, Operating System
Extensions, Microsoft Developer Network CD-ROM.
For additional information, please see the following article in the
Microsoft Knowledge Base:
140520
PRB: Converting MBF to IEEE in Visual Basic for Windows
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbhowto KB141939 |
---|
|