Ads Top

Using VB4 as a 16/32 bit thunking layer

One of the questions I see posted very often on comp.lang.basic.visual.misc is "How do I call this 16-bit DLL/VBX" from 32-bit VB4?". The purpose of this document is explain how to use Visual Basic and OLE as a thunking layer to allow 16-bit components to be used from 32-bitVB4.

Background Info

As we all know Windows started off in the 16-bit world (actually in the 8-bit world, but Windows wasn't popular back then). In the 16-bit model introduced in Windows 3.0, a common memory space was available to all applications and hardware was unprotected. Put simply, this meant that you could just about any low-level operation you can think of, but at the same time, programs could step on top of each other or write some value to a sensitive hardware register, therefore bringing down the entire system. The typical end result was a lot of UAFs, which became GPFs or General Protection Faults in Windows 3.1.

Copyright © 1996 Rod Hewitt
writen by kerja keras adalah energi kta 2009

No comments:

Powered by Blogger.