> so when we call that execution buffer. . .

How do you call an execution buffer in VB6 is the problem. There is no need for an execution buffer to callback a function, just call the address of the function if you have a solution to the problem at hand, namely if you have an address of a function (external stdcall DLL or in a bas module w/ AddressOf MyFunction for instance) how do you call this function, pass parameters and receive result proper?

Trampolines can solve this problem with minimal overhead.

In this thread we discuss tweaking such trampolines to call cdecl compiled functions in external C/C++ DLLs like sqlite3.dll

cheers,
</wqw>