Consultor Eletrônico



Kbase P64452: How to replace COM-HANDLE with MEMPTR ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/26/2004
Status: Unverified

GOAL:

How to replace COM-HANDLE with MEMPTR ?

FIX:

If something requires a COM-HANDLE, you cannot just pass a Memptr instead. A com-handle is an identifier from the COM framework that points to the structure of an object instance. This structure is then used to store valid attributes/methods/properties/etc.

Using MEMPTRs instead of COM-HANDLES would basically require direct entry points into the COM framework and an in-depth knowledge of how that framework works. It will require much more effort than simply loading a file into a memptr and passing the pointer value.

It can probably be achieved from 4GL by building a low-level interface based on DLL function calls, but doing so falls outside of the scope of Tech Support.